mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-10 18:18:49 +00:00
VertexShaderGen: Use reversed depth range.
This commit is contained in:
parent
e9e81ece65
commit
4582853af4
3 changed files with 8 additions and 5 deletions
|
@ -1138,7 +1138,7 @@ void Renderer::SetViewport()
|
|||
auto iceilf = [](float f) { return static_cast<GLint>(ceilf(f)); };
|
||||
glViewport(iceilf(X), iceilf(Y), iceilf(Width), iceilf(Height));
|
||||
}
|
||||
glDepthRangef(0.0f, 16777215.0f / 16777216.0f);
|
||||
glDepthRangef(16777215.0f / 16777216.0f, 0.0f);
|
||||
}
|
||||
|
||||
void Renderer::ClearScreen(const EFBRectangle& rc, bool colorEnable, bool alphaEnable, bool zEnable,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue