drirc: Set glsl_zero_init for Kerbal Space Program.
authorFrancisco Jerez <currojerez@riseup.net>
Tue, 4 Apr 2017 21:12:59 +0000 (14:12 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Tue, 4 Apr 2017 21:13:03 +0000 (14:13 -0700)
commit0de17f52a515e655682b4b894c44ad9d7308794e
tree9568e00aa56a86f2ef43d760a4f9da77a28701e1
parente8d9b76f6390459b2f7e2aa6ae8b74275f66c791
drirc: Set glsl_zero_init for Kerbal Space Program.

This fixes the stripes of garbage rendered on the floor of the vehicle
assembly building among other rendering issues.  The reason for the
misrendering seems to be that some of the GLSL shaders used by the
application use variables before initializing them, incorrectly
assuming that they will be implicitly set to zero by the
implementation.

Acked-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/common/drirc