diff options
author | bohu <bohu@google.com> | 2014-10-17 16:40:23 -0700 |
---|---|---|
committer | bohu <bohu@google.com> | 2014-10-17 16:40:23 -0700 |
commit | f68413b2dbf5a73643195589b3fb5c10886a150e (patch) | |
tree | 2223a3392263325da606d06c17a6d5ac8f077f7f /emulator/opengl/host/libs | |
parent | 4e7f540dcd1ef4f83e82d6c08a318da3933a7eca (diff) | |
download | sdk-f68413b2dbf5a73643195589b3fb5c10886a150e.zip sdk-f68413b2dbf5a73643195589b3fb5c10886a150e.tar.gz sdk-f68413b2dbf5a73643195589b3fb5c10886a150e.tar.bz2 |
Handle empty data parameter in glTexSubImage2D
This commit handles empty data parameter in decoder side to avoid
crashing emultor.
Change-Id: I1605c328506d1fa1506023ca7b261d210b944d12
Diffstat (limited to 'emulator/opengl/host/libs')
-rw-r--r-- | emulator/opengl/host/libs/GLESv2_dec/gl2.attrib | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib b/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib index 7fe9a66..2c8b8e5 100644 --- a/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib +++ b/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib @@ -257,7 +257,7 @@ glTexParameteriv #void glTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels) glTexSubImage2D len pixels pixelDataSize(self, width, height, format, type, 0) - var_flag pixels isLarge + var_flag pixels nullAllowed isLarge #void glUniform1fv(GLint location, GLsizei count, GLfloat *v) glUniform1fv |