summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_scene.c
diff options
context:
space:
mode:
authorAnuj Phogat <[email protected]>2014-06-18 17:35:18 -0700
committerAnuj Phogat <[email protected]>2014-08-04 18:31:26 -0700
commitd308f57fe796a39d7d3f547aad62540cfd520675 (patch)
treeacaa0035772752ff1818c8437d111bb1a8ed586e /src/gallium/drivers/llvmpipe/lp_scene.c
parent338fef61f86bb121e47b096428dce2a9109d3a3e (diff)
egl: Fix OpenGL ES version checks in _eglParseContextAttribList()
We would generate EGL_BAD_CONFIG because _eglGetContextAPIBit returns zero for the combination of EGL_OPENGL_ES_API and a major version > 3. By just returning zero, the caller can't tell the difference between a bad version (which should generate EGL_BAD_MATCH) and a bad API (which should generate EGL_BAD_CONFIG). This patch causes us to filter out major versions > 3 at a point where we can generate the correct error. Fixes gles3 Khronos CTS test: egl_create_context.egl_create_context V2: Fix commit message as suggested by Ian. Cc: <[email protected]> Signed-off-by: Anuj Phogat <[email protected]> Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_scene.c')
0 files changed, 0 insertions, 0 deletions