Fix invalid parameter for GLES 2.0
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Tue, 30 Jul 2019 16:20:29 +0000 (10:20 -0600)
committerCourtney Goeltzenleuchter <courtneygo@google.com>
Wed, 13 May 2020 19:25:16 +0000 (13:25 -0600)
commit7188019ab55a568e5af0d2c13b01500cf136edf2
tree9de4d8d527ce4906162a09f473842aa6bc93a8d4
parent393bafd9da2c9527c0abbcd5814bcde6688318d6
Fix invalid parameter for GLES 2.0

Test was creating a texture with format of GL_DEPTH_STENCIL and
internalformat of GL_DEPTH24_STENCIL8_OES. In ES 2.0 the format and
internalformat must match.
Added an extra case when running 3.0 or better that does allow different
values for format and internalformat.

Affects:

KHR-GLES2.core.internalformat.texture2d.depth_stencil_unsigned_int_24_8_depth24_stencil

Components: OpenGL

VK-GL-CTS issue: 1903

Change-Id: I710975a0ea7c1d551f412590f887d9412be6f897
(cherry picked from commit 0c9f0c072d530bf378bc50265284fbc95c450e69)
external/openglcts/modules/common/glcInternalformatTests.cpp