mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +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
|
@ -122,6 +122,8 @@ ShaderCode GenerateGeometryShaderCode(APIType api_type, const ShaderHostConfig&
|
|||
ShaderStage::Geometry);
|
||||
|
||||
out.Write("}} ps;\n");
|
||||
if (stereo && !host_config.backend_gl_layer_in_fs)
|
||||
out.Write("flat out int layer;");
|
||||
|
||||
out.Write("void main()\n{{\n");
|
||||
}
|
||||
|
@ -348,6 +350,8 @@ static void EmitVertex(ShaderCode& out, const ShaderHostConfig& host_config,
|
|||
{
|
||||
out.Write("\tps.layer = eye;\n");
|
||||
}
|
||||
if (!host_config.backend_gl_layer_in_fs)
|
||||
out.Write("\tlayer = eye;\n");
|
||||
}
|
||||
|
||||
if (api_type == APIType::OpenGL || api_type == APIType::Vulkan)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue