mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VideoCommon: Fix stereoscopic 3D on OpenGL < 4.3 (macOS)
This commit is contained in:
parent
ba3c38a63f
commit
f25a0b43b6
7 changed files with 19 additions and 2 deletions
|
@ -866,6 +866,8 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos
|
|||
GetInterpolationQualifier(msaa, ssaa, true, true), ShaderStage::Pixel);
|
||||
|
||||
out.Write("}};\n");
|
||||
if (stereo && !host_config.backend_gl_layer_in_fs)
|
||||
out.Write("flat in int layer;");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -923,7 +925,8 @@ ShaderCode GeneratePixelShaderCode(APIType api_type, const ShaderHostConfig& hos
|
|||
|
||||
if (host_config.backend_geometry_shaders && stereo)
|
||||
{
|
||||
out.Write("\tint layer = gl_Layer;\n");
|
||||
if (host_config.backend_gl_layer_in_fs)
|
||||
out.Write("\tint layer = gl_Layer;\n");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue