summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-26 04:28:46 +0100
committerReinUsesLisp <reinuseslisp@airmail.cc>2020-02-28 20:39:44 +0100
commit1698143a1d3af8d743c4204007995f7b26251233 (patch)
tree73e8ffb29765ccdf64b74d97f737b90d6975ccec
parentgl_rasterizer: Remove dirty flags (diff)
downloadyuzu-1698143a1d3af8d743c4204007995f7b26251233.tar
yuzu-1698143a1d3af8d743c4204007995f7b26251233.tar.gz
yuzu-1698143a1d3af8d743c4204007995f7b26251233.tar.bz2
yuzu-1698143a1d3af8d743c4204007995f7b26251233.tar.lz
yuzu-1698143a1d3af8d743c4204007995f7b26251233.tar.xz
yuzu-1698143a1d3af8d743c4204007995f7b26251233.tar.zst
yuzu-1698143a1d3af8d743c4204007995f7b26251233.zip
-rw-r--r--src/video_core/renderer_opengl/gl_rasterizer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_opengl/gl_rasterizer.cpp b/src/video_core/renderer_opengl/gl_rasterizer.cpp
index 1d203fd08..1fc05e041 100644
--- a/src/video_core/renderer_opengl/gl_rasterizer.cpp
+++ b/src/video_core/renderer_opengl/gl_rasterizer.cpp
@@ -88,6 +88,10 @@ std::size_t GetConstBufferSize(const Tegra::Engines::ConstBufferInfo& buffer,
return buffer.size;
}
+void oglEnable(GLenum cap, bool state) {
+ (state ? glEnable : glDisable)(cap);
+}
+
} // Anonymous namespace
RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window,