Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Merge pull request #2870 from FernandoS27/multi-draw

Davidcc451e44354d
diff --cc src/video_core/renderer_opengl/gl_rasterizer.cpp
index a2c1473dbe,246b892c5e..6a17bed723
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@@ -706,10 -680,11 +632,11 @@@ void RasterizerOpenGL::DrawPrelude()
// Setup shaders and their used resources.
texture_cache.GuardSamplers(true);
- SetupShaders(params.primitive_mode);
+ const auto primitive_mode = MaxwellToGL::PrimitiveTopology(gpu.regs.draw.topology);
+ SetupShaders(primitive_mode);
texture_cache.GuardSamplers(false);
- ConfigureFramebuffers(state);
+ ConfigureFramebuffers();
// Signal the buffer cache that we are not going to upload more things.
const bool invalidate = buffer_cache.Unmap();