Explorar el Código

Merge pull request #1424 from MerryMage/lut_init

renderer_opengl: Initalise fragment shader LUT textures
bunnei hace 10 años
padre
commit
2b00bdec1f
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      src/video_core/renderer_opengl/gl_state.cpp

+ 4 - 0
src/video_core/renderer_opengl/gl_state.cpp

@@ -48,6 +48,10 @@ OpenGLState::OpenGLState() {
         texture_unit.sampler = 0;
     }
 
+    for (auto& lut : lighting_lut) {
+        lut.texture_1d = 0;
+    }
+
     draw.framebuffer = 0;
     draw.vertex_array = 0;
     draw.vertex_buffer = 0;