diff options
author | bohu <bohu@google.com> | 2014-10-17 11:49:35 -0700 |
---|---|---|
committer | Vince Harron <vharron@google.com> | 2014-10-29 19:16:59 +0000 |
commit | 8e870149f29f771cd27333af98a9a8e9b1382846 (patch) | |
tree | 0c382059d744103031c540fc0879e38e6066f7e0 /emulator/opengl | |
parent | a829d501fa16bdbdcfb85dfcff88c37dbcfac956 (diff) | |
download | sdk-8e870149f29f771cd27333af98a9a8e9b1382846.zip sdk-8e870149f29f771cd27333af98a9a8e9b1382846.tar.gz sdk-8e870149f29f771cd27333af98a9a8e9b1382846.tar.bz2 |
Handle empty length parameter on decoder side
OpenGL standard allows empty length parameter and we should
handle it properly to avoid crashing emulator.
Change-Id: I3bd5da19461da0c1f84138a197ae770091458b57
(cherry picked from commit f3e18524d036044e416647bb0a86ecaa270b3494)
Diffstat (limited to 'emulator/opengl')
-rw-r--r-- | emulator/opengl/host/libs/GLESv2_dec/gl2.attrib | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib b/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib index 7fe9a66..29f8358 100644 --- a/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib +++ b/emulator/opengl/host/libs/GLESv2_dec/gl2.attrib @@ -151,6 +151,7 @@ glGetProgramInfoLog len infolog bufsize dir length out len length sizeof(GLsizei) + var_flag length nullAllowed #void glGetRenderbufferParameteriv(GLenum target, GLenum pname, GLint *params) glGetRenderbufferParameteriv |