summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2011-11-13 20:50:07 -0800
committerThe Android Automerger <android-build@android.com>2011-11-15 16:19:56 -0800
commit5795536fa1d539d7c6c7773e734663dfa7820d18 (patch)
treec9fb4d4e259a3dda1e4047ca01b3edf8a37edcfe /opengl/tests/gl_basic/gl_basic.cpp
parent487a993b4ac1d502e1988a54409172b75659cffe (diff)
fix crash when validating an invalid EGL objects
the code that validated EGL objects dereferenced the object to access its EGLDisplay -- needed for validation (!). This was wrong for two reasons, first we dereferenced the object before validating it (potentially leading to a crash), secondly we didn't validate that the object existed in the right EGLDisplay. We now use the EGLDisplay passed by the user API. Change-Id: I66f9e851d4f8507892a6b1fee3065f124c4e7138
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions