mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 20:28:56 +00:00
OGL: Add support for glDepthRangedNV to handle oversized depth ranges.
This commit is contained in:
parent
28e6e259ed
commit
94522d4cf3
15 changed files with 119 additions and 44 deletions
|
@ -391,7 +391,8 @@ void VertexShaderManager::SetConstants()
|
|||
constants.pixelcentercorrection[2] = 1.0f;
|
||||
constants.pixelcentercorrection[3] = 0.0f;
|
||||
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp)
|
||||
if (g_ActiveConfig.backend_info.bSupportsDepthClamp &&
|
||||
!g_ActiveConfig.backend_info.bSupportsOversizedDepthRanges)
|
||||
{
|
||||
// Oversized depth ranges are handled in the vertex shader. We need to reverse
|
||||
// the far value to get a reversed depth range mapping. This is necessary
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue