Permit different errors in context creation tests
authorMichael Chock <mchock@nvidia.com>
Wed, 13 Dec 2017 17:10:18 +0000 (09:10 -0800)
committerMichael Chock <mchock@nvidia.com>
Wed, 13 Dec 2017 17:10:18 +0000 (09:10 -0800)
commit990fc78bd1b4fb2c668b3f779b006c09a389580e
treec825f9df5dbd789c68ae217603d00ab8d9bc3b41
parent5afbb268c48682b098ed31426fdcfa95d246e136
Permit different errors in context creation tests

dEQP-EGL.functional.negative_api.create_context tests error conditions
EGL supports OpenGL ES, but not a specifically requested version (e.g.,
creating an OpenGL ES 1 context when only OpenGL ES 2 is supported). The
error that should be raised varies based on the governing specification.
EGL 1.4 mandates EGL_BAD_CONFIG. EGL 1.5 mandates EGL_BAD_MATCH.
EGL_KHR_create_context has langage mandating *both* errors in separate
paragraphs.

Accept either error code as appropriate for EGL version and extension
support.
modules/egl/teglNegativeApiTests.cpp