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>
Fri, 11 Oct 2019 09:11:08 +0000 (05:11 -0400)
commit96d4f7bafa35a9567eef5c4d7658a316837b8a0b
treee395740911221d2542d7c830484088e8228cf302
parent2db8f816795b710ba5e42358efcd8b3e03df5d02
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
framework/opengl/gluContextInfo.cpp
framework/opengl/gluContextInfo.hpp
modules/gles2/functional/es2fNegativeBufferApiTests.cpp
modules/gles2/functional/es2fShaderBuiltinVarTests.cpp
modules/gles2/functional/es2fTextureMipmapTests.cpp