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>
Thu, 21 May 2020 08:31:38 +0000 (04:31 -0400)
commit4392facc87c2da80b5065f8663b9303fb1113e16
tree05c38e090989abfae1145de7533a82eaacf28acf
parenteaa96088d8bd1902c32cf26908e50189ab0e039e
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
modules/egl/teglRobustnessTests.cpp