Fix (likely) typo in glGetTextureSubImage height calculation
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 14 Dec 2017 23:56:59 +0000 (15:56 -0800)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 15 Dec 2017 20:03:16 +0000 (15:03 -0500)
commitb61ffe2fea7892472ede2ae56f458fdd97e408bb
tree270d6aa8a2ead6bc39e97e54eb31799ea0bb6da8
parente11d039db74227cff67e21bad8f3f8d864a90933
Fix (likely) typo in glGetTextureSubImage height calculation

The old code used "test_textures[i].id == GL_TEXTURE_1D", but
test_texturess::id contains the texture ID, not the texture target.  As
a result, the GL_TEXTURE_1D test always got the error that it expected,
but it got it for the wrong reason.

Components: OpenGL

VK-GL-CTS issue: 912

Affects:
KHR-GL46.get_texture_sub_image.errors_test

Change-Id: I4d3de1ccbd3b0cc554af23ceae16d590c82e81d4
external/openglcts/modules/gl/gl4cGetTextureSubImageTests.cpp