From f370cb386cccfa56e2ef677a55b27561c8217e7d Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Thu, 30 Oct 2014 14:24:23 +0100 Subject: ProgramShaderCache: Always generate a geometry shader UID, even if stereoscopy is disabled. --- Source/Core/VideoCommon/GeometryShaderGen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/GeometryShaderGen.cpp') diff --git a/Source/Core/VideoCommon/GeometryShaderGen.cpp b/Source/Core/VideoCommon/GeometryShaderGen.cpp index 6a39e2ca1d..a247899d5c 100644 --- a/Source/Core/VideoCommon/GeometryShaderGen.cpp +++ b/Source/Core/VideoCommon/GeometryShaderGen.cpp @@ -41,10 +41,10 @@ static inline void GenerateGeometryShader(T& out, u32 components, API_TYPE ApiTy out.Write("//Geometry Shader for 3D stereoscopy\n"); + uid_data->stereo = g_ActiveConfig.bStereo; if (ApiType == API_OPENGL) { // Insert layout parameters - uid_data->stereo = g_ActiveConfig.bStereo; if (g_ActiveConfig.backend_info.bSupportsGSInstancing) out.Write("layout(triangles, invocations = %d) in;\n", g_ActiveConfig.bStereo ? 2 : 1); else -- cgit v1.2.3