diff options
author | Nicolas Boichat <[email protected]> | 2016-07-15 16:24:20 +0800 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2016-07-20 15:10:33 +0100 |
commit | 9bebef4034c79d0f223a6e61943dd44bcb6442ee (patch) | |
tree | dce31ddc83e5b2dbff2473a510931e59d2e8f9c8 /src/mesa/drivers | |
parent | ccda100a5a2838adec16ac10b2cc1c73e666e7d2 (diff) |
egl/dri2: dri2_make_current: Set EGL error if bindContext fails
Without this, if a configuration is, say, available only on GLES2/3, but
not on GLES1, and is rejected by the dri module's bindContext call,
eglMakeCurrent fails with error "EGL_SUCCESS".
In this patch, we set error to EGL_BAD_MATCH, which is what CTS/dEQP
dEQP-EGL.functional.surfaceless_context expect.
Cc: "11.2 12.0" <[email protected]>
Signed-off-by: Nicolas Boichat <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
0 files changed, 0 insertions, 0 deletions