Fix some egl robustness tests
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 3 May 2020 05:57:02 +0000 (15:57 +1000)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Fri, 9 Oct 2020 15:15:16 +0000 (11:15 -0400)
commit8adc92add13e161a8f90918451d0189644d01a81
treef1a48baabf8c7e796f0b90d96d4d0b58f17974de
parent0cf63b2dbb1e7966d3bea200e710c106ea745f3a
Fix some egl robustness tests

Because the values of color were initially undefined an optimised
compiler can simply set all components of the vector to the value
being assigned to color[u_index] and eventually eliminate color and
u_index completely.

To avoid this we initialise color.

Affects:
dEQP-EGL.functional.robustness.reset_context.shaders*

Components: OpenGL
VK-GL-CTS issue: 2349

Change-Id: I6eb929eec07b039afb247427af91aba65dbade9b
(cherry picked from commit 4392facc87c2da80b5065f8663b9303fb1113e16)
modules/egl/teglRobustnessTests.cpp