fix GL46 vector construction sizing
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Feb 2022 22:14:31 +0000 (17:14 -0500)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 23 Feb 2022 22:22:11 +0000 (17:22 -0500)
commit293d9ab104445783e62de397cbbe583f37c33194
treedf4c2614102bcec02da5a91c79a1dcb6997ba085
parentc9f784d56c2512fb5d9969fdfa2e076edc07938f
fix GL46 vector construction sizing

the vector here is 4 rows of 2 components, but std::vector.size()
returns the total vector length (8), so divide by 2 to get the correct
length here and avoid out-of-bounds reads

Affects:

KHR-GL46.shaders30.glsl_constructors*

Components: OpenGL
VK-GL-CTS Issue: 3538

Change-Id: I8a07957722bf8b49fdcee14fe109d284f8cb9e27
external/openglcts/modules/common/glcGLSLVectorConstructorTests.cpp