diff options
author | wwylele <wwylele@gmail.com> | 2017-06-22 16:33:51 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2017-06-22 16:47:46 +0200 |
commit | f1e377f57e48a4046298b1c61c1a14a2d7193cee (patch) | |
tree | 0cc31e50a3921ae883069bd34565af71bbb73f69 /src/video_core/renderer_opengl | |
parent | Merge pull request #2792 from wwylele/lutlutlut (diff) | |
download | yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.gz yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.bz2 yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.lz yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.xz yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.tar.zst yuzu-f1e377f57e48a4046298b1c61c1a14a2d7193cee.zip |
Diffstat (limited to 'src/video_core/renderer_opengl')
-rw-r--r-- | src/video_core/renderer_opengl/gl_rasterizer.cpp | 4 |
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) { framebuffer.Create(); // Allocate and bind lighting lut textures - lighting_lut_buffer.Create(); + lighting_lut.Create(); state.lighting_lut.texture_buffer = lighting_lut.handle; state.Apply(); - lighting_lut.Create(); + lighting_lut_buffer.Create(); glBindBuffer(GL_TEXTURE_BUFFER, lighting_lut_buffer.handle); glBufferData(GL_TEXTURE_BUFFER, sizeof(GLfloat) * 2 * 256 * Pica::LightingRegs::NumLightingSampler, nullptr, |