mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
VertexShaderGen: Use correct depth output when glClipControl is supported.
This commit is contained in:
@ -379,7 +379,7 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ
|
||||
|
||||
//write the true depth value, if the game uses depth textures pixel shaders will override with the correct values
|
||||
//if not early z culling will improve speed
|
||||
if (api_type == API_D3D)
|
||||
if (g_ActiveConfig.backend_info.bSupportsClipControl)
|
||||
{
|
||||
out.Write("o.pos.z = o.pos.w + o.pos.z;\n");
|
||||
}
|
||||
|
@ -159,6 +159,7 @@ struct VideoConfig final
|
||||
bool bSupportsGSInstancing; // Needed by GeometryShaderGen, so must stay in VideoCommon
|
||||
bool bSupportsPostProcessing;
|
||||
bool bSupportsPaletteConversion;
|
||||
bool bSupportsClipControl; // Needed by VertexShaderGen, so must stay in VideoCommon
|
||||
} backend_info;
|
||||
|
||||
// Utility
|
||||
|
Reference in New Issue
Block a user