summaryrefslogtreecommitdiff
path: root/tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.h
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2011-11-18 14:05:26 -0800
committerJesse Hall <jessehall@google.com>2011-11-21 13:14:19 -0800
commitf37a7ed6c5c609a3afc33f81bf50893362917ae6 (patch)
treedf33173b1fcbae6fa60e30e333d3ed1bfba80b40 /tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.h
parentfaaf1553cfa39c23ceb198ba7edbd46ff3a11f7a (diff)
GLES translator: don't delete EGLImage textures
When remapping a GLES texture to a different GL texture in glEGLImageTargetTexture2DOES(), the GLES texture's previous GL texture was deleted unconditionally. This is bad when it came from an EGLImage and is therefore owned by (and will continue to be used by) some other object. The code now skips deleting the old GL texture if it came from an EGLImage. This mirrors the logic in glDeleteTextures(). Change-Id: I5b650334a7019d824517c2915b1f23961fbbd809
Diffstat (limited to 'tools/emulator/opengl/shared/OpenglCodecCommon/GLClientState.h')
0 files changed, 0 insertions, 0 deletions