summaryrefslogtreecommitdiffstats
path: root/opengl/libagl/state.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2009-06-10 16:01:54 -0700
committerMathias Agopian <mathias@google.com>2009-06-10 16:15:32 -0700
commit0a3139a21e628093893bba8ca0bb0b4742e0522c (patch)
tree969d7475aae42250b1b72ff31aa69a41def8482d /opengl/libagl/state.cpp
parent7e2a937c4fa91e7c048fdbc37fe2a8dd85361df9 (diff)
downloadframeworks_native-0a3139a21e628093893bba8ca0bb0b4742e0522c.tar.gz
frameworks_native-0a3139a21e628093893bba8ca0bb0b4742e0522c.tar.bz2
frameworks_native-0a3139a21e628093893bba8ca0bb0b4742e0522c.zip
fix a bug where copybit only renders in the first buffer when used with s/w GL
Diffstat (limited to 'opengl/libagl/state.cpp')
-rw-r--r--opengl/libagl/state.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/opengl/libagl/state.cpp b/opengl/libagl/state.cpp
index a00f779d6..a59b3b046 100644
--- a/opengl/libagl/state.cpp
+++ b/opengl/libagl/state.cpp
@@ -101,7 +101,7 @@ ogles_context_t *ogles_init(size_t extra)
c->copybits.blitEngine = NULL;
c->copybits.minScale = 0;
c->copybits.maxScale = 0;
- c->copybits.drawSurfaceFd = -1;
+ c->copybits.drawSurfaceBuffer = 0;
#ifdef LIBAGL_USE_GRALLOC_COPYBITS
hw_module_t const* module;