Sfoglia il codice sorgente

gl_rasterizer: Add oglEnablei helper

ReinUsesLisp 6 anni fa
parent
commit
b95f064b51
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      src/video_core/renderer_opengl/gl_rasterizer.cpp

+ 4 - 0
src/video_core/renderer_opengl/gl_rasterizer.cpp

@@ -92,6 +92,10 @@ void oglEnable(GLenum cap, bool state) {
     (state ? glEnable : glDisable)(cap);
 }
 
+void oglEnablei(GLenum cap, bool state, GLuint index) {
+    (state ? glEnablei : glDisablei)(cap, index);
+}
+
 } // Anonymous namespace
 
 RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window,