summaryrefslogtreecommitdiff
path: root/opengl/libagl/texture.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2009-06-10 16:01:54 -0700
committer Mathias Agopian <mathias@google.com> 2009-06-10 16:15:32 -0700
commit350d651706d8f484d9aeb539d491526f822fa84a (patch)
tree9018d81b9a591ff6fe71dec5f93c19018991c96b /opengl/libagl/texture.cpp
parent07fcf4c3a91e421dc6f3d17f28264d18e8b2bfdb (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.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/opengl/libagl/texture.cpp b/opengl/libagl/texture.cpp
index d675107ca0b1..05fd46e5a2b0 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
}