summaryrefslogtreecommitdiff
path: root/opengl/tests/gl_basic/gl_basic.cpp
diff options
context:
space:
mode:
authorJesse Hall <jessehall@google.com>2017-09-29 15:57:42 -0700
committerJesse Hall <jessehall@google.com>2017-09-29 15:57:42 -0700
commit09fc8f95792fdae9715668d5ce78050f0268adfc (patch)
tree875043ec01fe71153af47ae738fa22dd9ce7a29f /opengl/tests/gl_basic/gl_basic.cpp
parentf71878b87b50de7d80de05ef30bf85a892f999db (diff)
Handle glGetString returning NULL
When two contexts are shared, and one is lost/reset, the other can be lost as well. A lost context can return NULL from glGetString. On the first eglMakeCurrent to a context, we fetch the extension list, and weren't checking for NULL, leading to a crash in the rare case where a context is lost and then another context sharing with it is made current for the first time. Bug: 64024627 Test: dEQP-EGL.functional.robustness.reset_context.shaders.infinite_loop.shared_context_status.* Change-Id: Ib7e1b932490ec587df159e9e461c211d3dac35d4
Diffstat (limited to 'opengl/tests/gl_basic/gl_basic.cpp')
0 files changed, 0 insertions, 0 deletions