Fix shader draw parameter pack alignment issue
authorJeannot Breton <jbreton@nvidia.com>
Wed, 7 Jun 2017 22:09:00 +0000 (17:09 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 9 Jun 2017 15:51:54 +0000 (11:51 -0400)
commit90dd70b8ea724c1ce9701fc1979ca0bfca657026
tree504af8f2e60ef2091825c83a85760ae892d906e6
parentd3ef38a2673767f17e53ecd45b3bb502e3bc78e5
Fix shader draw parameter pack alignment issue

The test allocates a buffer of width*height*3 elements and expects
the readPixels to only write to this memory.

This is not correct if the window width is not a multiple of 4

Adding a gl.pixelStorei(GL_PACK_ALIGNMENT, 1) before the readPixels
fixes the issue

Affects:

KHR-GL45.shader_draw_parameters_tests.ShaderDrawArraysParameters

Components: OpenGL

VK-GL-CTS issue: 477

Change-Id: I2bef139f5b1e39fe52b2f00e5a529ce503a5d567
external/openglcts/modules/gl/gl4cShaderDrawParametersTests.cpp