mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-22 13:55:38 +00:00
OpenGLDevice: Persist GL_SCISSOR_TEST enabled
This commit is contained in:
parent
8dc9c225d7
commit
c986d0ea78
|
@ -333,6 +333,9 @@ bool OpenGLDevice::CreateDevice(const std::string_view& adapter, bool threaded_p
|
|||
if (!CreateBuffers(buggy_pbo))
|
||||
return false;
|
||||
|
||||
// Scissor test should always be enabled.
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -595,9 +595,6 @@ ALWAYS_INLINE static void ApplyRasterizationState(const GPUPipeline::Rasterizati
|
|||
glEnable(GL_CULL_FACE);
|
||||
glCullFace((rs.cull_mode == GPUPipeline::CullMode::Front) ? GL_FRONT : GL_BACK);
|
||||
}
|
||||
|
||||
// TODO: always enabled, should be done at init time
|
||||
glEnable(GL_SCISSOR_TEST);
|
||||
}
|
||||
|
||||
ALWAYS_INLINE static void ApplyDepthState(const GPUPipeline::DepthState& ds)
|
||||
|
|
Loading…
Reference in a new issue