summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-02-26 01:36:27 +0100
committerbunnei <bunneidev@gmail.com>2016-02-26 01:36:27 +0100
commit2b00bdec1f83be82acb65bb316086858134e5766 (patch)
tree3963ced71912f8b4819aefa8b902884d0a21da7c
parentMerge pull request #1386 from MerryMage/audio-core-skeleton (diff)
parentrenderer_opengl: Initalise fragment shader LUT textures (diff)
downloadyuzu-2b00bdec1f83be82acb65bb316086858134e5766.tar
yuzu-2b00bdec1f83be82acb65bb316086858134e5766.tar.gz
yuzu-2b00bdec1f83be82acb65bb316086858134e5766.tar.bz2
yuzu-2b00bdec1f83be82acb65bb316086858134e5766.tar.lz
yuzu-2b00bdec1f83be82acb65bb316086858134e5766.tar.xz
yuzu-2b00bdec1f83be82acb65bb316086858134e5766.tar.zst
yuzu-2b00bdec1f83be82acb65bb316086858134e5766.zip
-rw-r--r--src/video_core/renderer_opengl/gl_state.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_state.cpp b/src/video_core/renderer_opengl/gl_state.cpp
index ab4b6c7b1..08e4d0b54 100644
--- a/src/video_core/renderer_opengl/gl_state.cpp
+++ b/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;