From 0d79e8f32b1dd3f03fdcb857cd7e5c9b7ce30dfe Mon Sep 17 00:00:00 2001 From: Jules Blok Date: Fri, 19 Dec 2014 18:24:33 +0100 Subject: VideoCommon: Don't specify the redundant in/out qualifier if GL_ARB_shading_language_420pack is supported. Some driver developers interpreted "can" as "must" in the OpenGL specs. (I'm looking at you AMD) --- Source/Core/VideoCommon/VertexShaderGen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VertexShaderGen.cpp') diff --git a/Source/Core/VideoCommon/VertexShaderGen.cpp b/Source/Core/VideoCommon/VertexShaderGen.cpp index f14cd559da..10ebc89f86 100644 --- a/Source/Core/VideoCommon/VertexShaderGen.cpp +++ b/Source/Core/VideoCommon/VertexShaderGen.cpp @@ -75,8 +75,8 @@ static inline void GenerateVertexShader(T& out, u32 components, API_TYPE api_typ if (g_ActiveConfig.backend_info.bSupportsGeometryShaders) { out.Write("out VertexData {\n" - "\tcentroid out VS_OUTPUT o;\n" - "};\n"); + "\tcentroid %s VS_OUTPUT o;\n" + "};\n", g_ActiveConfig.backend_info.bSupportsBindingLayout ? "" : "out"); } else { -- cgit v1.2.3