VERY experimental Nintendo Switch 2 emulator
C++
gl_rasterizer: create the texture before applying the state
wwyleleb3f9d734f03d
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cppindex 8b7991c04f..e3dcd831b4 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,