mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
Improve documentation.
This commit is contained in:
parent
8c1c7fc2da
commit
7078216b61
7 changed files with 44 additions and 26 deletions
|
@ -1159,8 +1159,12 @@ void Renderer::SetViewport()
|
|||
glViewport(iceilf(X), iceilf(Y), iceilf(Width), iceilf(Height));
|
||||
}
|
||||
|
||||
// Set the reversed depth range. If we do depth clipping and depth range in the
|
||||
// vertex shader we only need to ensure depth values don't exceed the maximum
|
||||
// value supported by the console GPU. If not, we simply clamp the near/far values
|
||||
// themselves to the maximum value as done above.
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||
glDepthRangef(16777215.0f / 16777216.0f, 0.0f);
|
||||
glDepthRangef(GX_MAX_DEPTH, 0.0f);
|
||||
else
|
||||
glDepthRangef(GLFar, GLNear);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue