Преглед изворни кода

gl_shader_gen: Initialize position.

IMO the old code is fine, but nvidia raises shader compiler warnings.
Trivial fix through...
Markus Wick пре 7 година
родитељ
комит
a781042700
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/video_core/renderer_opengl/gl_shader_gen.cpp

+ 1 - 0
src/video_core/renderer_opengl/gl_shader_gen.cpp

@@ -42,6 +42,7 @@ layout (std140) uniform vs_config {
 };
 
 void main() {
+    position = vec4(0.0, 0.0, 0.0, 0.0);
     exec_vertex();
 )";