mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
VideoCommon: Fix stereoscopic 3D on OpenGL < 4.3 (macOS)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user