summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar wwylele2017-06-22 17:33:51 +0300
committerGravatar wwylele2017-06-22 17:47:46 +0300
commitf1e377f57e48a4046298b1c61c1a14a2d7193cee (patch)
tree0cc31e50a3921ae883069bd34565af71bbb73f69 /src
parentMerge pull request #2792 from wwylele/lutlutlut (diff)
downloadyuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.gz
yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.xz
yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.zip
gl_rasterizer: create the texture before applying the state
this is a rebasing error from #2792. It doesn't affect much though, because the later more Apply() call fixes/hides it
Diffstat (limited to '')
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 8b7991c04..e3dcd831b 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -94,10 +94,10 @@ RasterizerOpenGL::RasterizerOpenGL() : shader_dirty(true) {
94 framebuffer.Create(); 94 framebuffer.Create();
95 95
96 // Allocate and bind lighting lut textures 96 // Allocate and bind lighting lut textures
97 lighting_lut_buffer.Create(); 97 lighting_lut.Create();
98 state.lighting_lut.texture_buffer = lighting_lut.handle; 98 state.lighting_lut.texture_buffer = lighting_lut.handle;
99 state.Apply(); 99 state.Apply();
100 lighting_lut.Create(); 100 lighting_lut_buffer.Create();
101 glBindBuffer(GL_TEXTURE_BUFFER, lighting_lut_buffer.handle); 101 glBindBuffer(GL_TEXTURE_BUFFER, lighting_lut_buffer.handle);
102 glBufferData(GL_TEXTURE_BUFFER, 102 glBufferData(GL_TEXTURE_BUFFER,
103 sizeof(GLfloat) * 2 * 256 * Pica::LightingRegs::NumLightingSampler, nullptr, 103 sizeof(GLfloat) * 2 * 256 * Pica::LightingRegs::NumLightingSampler, nullptr,