Platform: fix an uninitialized vector in vertexlit.glsl which caused graphical corruption on some Intel graphics.

This commit is contained in:
Marco Cawthorne 2023-07-08 22:05:54 -07:00
parent 9fd087d7bc
commit 713db23884
Signed by: eukara
GPG key ID: CE2032F0A2882A22

View file

@ -90,13 +90,11 @@ varying mat3 invsurface;
void main (void)
{
vec4 diff_f;
vec3 light;
vec4 diff_f = vec4(1.0, 1.0, 1.0, 1.0);
vec3 light = vec3(0.0, 0.0, 0.0);
#if r_skipDiffuse == 0
diff_f = texture2D(s_diffuse, tex_c);
#else
diff_f = vec4(1.0, 1.0, 1.0, 1.0);
#endif
// bump goes here