egl: return correct error code for a case req ver < 3 with forward-compatible
authorAndrii Simiklit <andrii.simiklit@globallogic.com>
Thu, 11 Oct 2018 10:53:21 +0000 (13:53 +0300)
committerIan Romanick <idr@paranormal-entertainment.com>
Wed, 1 May 2019 00:14:00 +0000 (00:14 +0000)
commit5c581b3dd6979b79cb3e3ab8e2e03b442e6ecb0d
tree45a9e43ad8b4302d0be943b5ebf7362e6b9b4256
parent90f3bf7437eb735bf51d8fcbfbb0adeed9cfcf89
egl: return correct error code for a case req ver < 3 with forward-compatible

The EGL_KHR_create_context spec says:
   "If an OpenGL context is requested and the values for attributes
    EGL_CONTEXT_MAJOR_VERSION_KHR and EGL_CONTEXT_MINOR_VERSION_KHR,
    when considered together with the value for attribute
    EGL_CONTEXT_OPENGL_FORWARD_COMPATIBLE_BIT_KHR, specify an OpenGL
    version and feature set that are not defined, than an
    EGL_BAD_MATCH error is generated."

This case is already correctly handled a bit below in
the same source file.
The correct handling was added by commit: 63beb3df

Reported-by: Ian Romanick <idr@freedesktop.org>
Here: https://bugzilla.freedesktop.org/show_bug.cgi?id=92552#c9
Fixes: 11cabc45b712 "egl: rework handling EGL_CONTEXT_FLAGS"
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Andrii Simiklit <andrii.simiklit@globallogic.com>
src/egl/main/eglcontext.c