Platform: fix an uninitialized vector in vertexlit.glsl which caused graphical corruption on some Intel graphics.
This commit is contained in:
parent
9fd087d7bc
commit
713db23884
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue