2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

gl_rasterizer: Add OpenGL enable/disable helper

This commit is contained in:
ReinUsesLisp 2019-12-26 00:28:46 -03:00
parent 96ac3d518a
commit 1698143a1d

View file

@ -88,6 +88,10 @@ std::size_t GetConstBufferSize(const Tegra::Engines::ConstBufferInfo& buffer,
return buffer.size; return buffer.size;
} }
void oglEnable(GLenum cap, bool state) {
(state ? glEnable : glDisable)(cap);
}
} // Anonymous namespace } // Anonymous namespace
RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window, RasterizerOpenGL::RasterizerOpenGL(Core::System& system, Core::Frontend::EmuWindow& emu_window,