diff options
| author | Jules Blok <jules.blok@gmail.com> | 2016-08-05 22:31:34 +0200 |
|---|---|---|
| committer | Jules Blok <jules.blok@gmail.com> | 2016-08-15 13:11:26 +0200 |
| commit | a141e91dd226885fc767d009938ca61a22f86558 (patch) | |
| tree | 3b55820cbda0ba34278a4cc340f8e70ab07a3ce5 /Source/Core/VideoCommon/VideoConfig.h | |
| parent | 4582853af48f67047e57b997bf923488bf444931 (diff) | |
OGL: Check for GL_DEPTH_CLAMP support.
It's not available in OpenGL ES and officially it's not supported on OpenGL 3.0/3.1.
Fallback to old depth range code if there is no method to disable depth clipping.
It's more important to have correct clipping than to have accurate depth values.
Inaccurate depth values can be fixed by slow depth.
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.h')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.h b/Source/Core/VideoCommon/VideoConfig.h index 92be4726ef..c95706db53 100644 --- a/Source/Core/VideoCommon/VideoConfig.h +++ b/Source/Core/VideoCommon/VideoConfig.h @@ -171,6 +171,7 @@ struct VideoConfig final bool bSupportsPaletteConversion; bool bSupportsClipControl; // Needed by VertexShaderGen, so must stay in VideoCommon bool bSupportsSSAA; + bool bSupportsDepthClamp; // Needed by VertexShaderGen, so must stay in VideoCommon } backend_info; // Utility |
