mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-15 18:12:48 +00:00
gl_rasterizer: Add OpenGL enable/disable helper
This commit is contained in:
parent
96ac3d518a
commit
1698143a1d
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue