mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-27 19:00:58 +01:00
GPU: Don't try to parse the depth test function if the depth test is disabled.
This commit is contained in:
parent
92c7135065
commit
65c664560c
1 changed files with 4 additions and 0 deletions
|
@ -735,6 +735,10 @@ void RasterizerOpenGL::SyncDepthTestState() {
|
|||
|
||||
state.depth.test_enabled = regs.depth_test_enable != 0;
|
||||
state.depth.write_mask = regs.depth_write_enabled ? GL_TRUE : GL_FALSE;
|
||||
|
||||
if (!state.depth.test_enabled)
|
||||
return;
|
||||
|
||||
state.depth.test_func = MaxwellToGL::ComparisonOp(regs.depth_test_func);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue