Fix pack alignment issue on odd window width
authorJeannot Breton <jbreton@nvidia.com>
Mon, 22 May 2017 20:26:07 +0000 (15:26 -0500)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 26 May 2017 15:43:27 +0000 (11:43 -0400)
commit8196ab6decfe5a836285731a787b9d030f6c8bbf
treeefb804c68497f8716ddd66b84edb256c6e4bfe90
parent0263a4dfdd724a80085fc5930d349bf20eecb9d1
Fix pack alignment issue on odd window width

The test allocates a buffer of width*height 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.indirect_parameters_tests.MultiDrawArraysIndirectCount

Components: OpenGL

VK-GL-CTS issue: 433

Change-Id: I7f8b92af7b5a27a6770e7cde23e51df30508a3c0
external/openglcts/modules/gl/gl4cIndirectParametersTests.cpp