summaryrefslogtreecommitdiff
path: root/opengl/libagl/state.cpp
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2010-07-26 21:14:59 -0700
committer Mathias Agopian <mathias@google.com> 2010-07-26 21:14:59 -0700
commitcee79391c8c4e4111dd2f5074fa84d47b2a8f153 (patch)
treebd9a33a57f8020740d7992198e1451280a4ddcb2 /opengl/libagl/state.cpp
parent5767cf62a45d64980a4bf91bdd2e8357f79e1a4e (diff)
fix [2870926] Issue 9802: EGL wrapper has not been implemented correctly for eglQuerySurface().
rework how our EGL wrapper manages EGLConfig: - we now store the EGLConfig with the EGLSurface and EGLContext so that we can have easy access to it from eglQueryContext and eglQuerySurface. - EGLConfig now are an index into a sorted table of egl_config_t, we use a binary search to retrieve our EGLConfig (the index) from the implementation's EGLConfig. - egl_config_t keeps track of the implementation's index, EGLConfig and CONFIG_ID as well as our CONFIG_ID. In many ways, this implementation is simpler and more robust, as it doesn't assume anything about the number of implementations nor what EGLConfig is made of (the previous code assumed EGLConfig didn't usem more than 24-bits). Change-Id: Id5abe923aacb6e1fd2b63bd8c15d7b04ae824922
Diffstat (limited to 'opengl/libagl/state.cpp')
0 files changed, 0 insertions, 0 deletions