diff options
author | 2009-06-10 16:01:54 -0700 | |
---|---|---|
committer | 2009-06-10 16:15:32 -0700 | |
commit | 0a3139a21e628093893bba8ca0bb0b4742e0522c (patch) | |
tree | 969d7475aae42250b1b72ff31aa69a41def8482d /opengl/libagl/texture.cpp | |
parent | 7e2a937c4fa91e7c048fdbc37fe2a8dd85361df9 (diff) |
fix a bug where copybit only renders in the first buffer when used with s/w GL
Diffstat (limited to 'opengl/libagl/texture.cpp')
-rw-r--r-- | opengl/libagl/texture.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp index d675107ca0..05fd46e5a2 100644 --- a/opengl/libagl/texture.cpp +++ b/opengl/libagl/texture.cpp @@ -1544,12 +1544,10 @@ void glEGLImageTargetTexture2DOES(GLenum target, GLeglImageOES image) * */ #ifdef LIBAGL_USE_GRALLOC_COPYBITS - tex->copybits_fd = -1; - private_handle_t* hand; - if ((hand = private_handle_t::dynamicCast(native_buffer->handle)) != NULL) { - if (hand->usesPhysicallyContiguousMemory()) { - tex->copybits_fd = hand->fd; - } + tex->try_copybit = false; + private_handle_t* hnd = private_handle_t::dynamicCast(native_buffer->handle); + if (hnd && hnd->usesPhysicallyContiguousMemory()) { + tex->try_copybit = true; } #endif // LIBAGL_USE_GRALLOC_COPYBITS } |