Allow tests to pass with a ES3+ context.
authorEmmanuel Tanguy <emmanuel.tanguy@broadcom.com>
Mon, 7 Oct 2019 12:49:25 +0000 (13:49 +0100)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Mon, 13 Jan 2020 13:38:28 +0000 (08:38 -0500)
commit00eb9ca8d0ba540b6f913a54cb3cb459fa5b8d4b
tree38592856b4a421b186fdc202330cfccbad212295
parent0a2287cf3020f5cd6c2b06db29a1b0f7861f3865
Allow tests to pass with a ES3+ context.

Setting gl_MaxDrawBuffers ref value to GL_MAX_DRAW_BUFFERS for ES3 context.

Reduce code duplication where the same check exists in other tests.

Components: OpenGL ES

VK-GL-CTS issue: 2011

Affected tests:
dEQP-GLES2.functional.shaders.builtin_variable.max_draw_buffers_vertex
dEQP-GLES2.functional.shaders.builtin_variable.max_draw_buffers_fragment
dEQP-GLES2.functional.negative_api.buffer.framebuffer_texture2d
dEQP-GLES2.functional.texture.mipmap.cube.*

Change-Id: I6c5e522940256c98b54e5533f29fdafeac60a256
(cherry picked from commit 96d4f7bafa35a9567eef5c4d7658a316837b8a0b)
framework/opengl/gluContextInfo.cpp
framework/opengl/gluContextInfo.hpp
modules/gles2/functional/es2fNegativeBufferApiTests.cpp
modules/gles2/functional/es2fShaderBuiltinVarTests.cpp
modules/gles2/functional/es2fTextureMipmapTests.cpp