From eaa0dae305ec04b5e13c584609a63c7bc6c07fc3 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 27 Apr 2015 18:52:55 +0200 Subject: [PATCH] glsl: drop invariant qualifier Fix issue #510 and potentially it allows the compiler to better optimize the code --- plugins/GSdx/res/glsl/tfx_vgs.glsl | 4 ++-- plugins/GSdx/res/glsl_source.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/GSdx/res/glsl/tfx_vgs.glsl b/plugins/GSdx/res/glsl/tfx_vgs.glsl index c277c0fed3..76cc151fcb 100644 --- a/plugins/GSdx/res/glsl/tfx_vgs.glsl +++ b/plugins/GSdx/res/glsl/tfx_vgs.glsl @@ -28,7 +28,7 @@ out SHADER #define VSout_fc (VSout.fc) out gl_PerVertex { - invariant vec4 gl_Position; + vec4 gl_Position; float gl_PointSize; #if !pGL_ES float gl_ClipDistance[]; @@ -157,7 +157,7 @@ void vs_main() #endif in gl_PerVertex { - invariant vec4 gl_Position; + vec4 gl_Position; float gl_PointSize; #if !pGL_ES float gl_ClipDistance[]; diff --git a/plugins/GSdx/res/glsl_source.h b/plugins/GSdx/res/glsl_source.h index 7554e46029..2a03862bee 100644 --- a/plugins/GSdx/res/glsl_source.h +++ b/plugins/GSdx/res/glsl_source.h @@ -479,7 +479,7 @@ static const char* tfx_vgs_glsl = "#define VSout_fc (VSout.fc)\n" "\n" "out gl_PerVertex {\n" - " invariant vec4 gl_Position;\n" + " vec4 gl_Position;\n" " float gl_PointSize;\n" "#if !pGL_ES\n" " float gl_ClipDistance[];\n" @@ -608,7 +608,7 @@ static const char* tfx_vgs_glsl = "#endif\n" "\n" "in gl_PerVertex {\n" - " invariant vec4 gl_Position;\n" + " vec4 gl_Position;\n" " float gl_PointSize;\n" "#if !pGL_ES\n" " float gl_ClipDistance[];\n"