[Mesa-dev] [PATCH] drirc: add force_glsl_version=440 for The Culling

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Feb 23 11:04:28 UTC 2017

This game uses GLSL 430 but the interpolation qualifiers in
some shaders don't match, which ends up in a link error. GLSL
440 spec removed this restriction, force it.

This fixes the following link error, as well as serious
rendering problems.

error: vertex shader output `out_TEXCOORD1' specifies noperspective
interpolation qualifier, but fragment shader input specifies no
interpolation qualifier

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
 src/mesa/drivers/dri/common/drirc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc
index 9573a1a494..494e9e1509 100644
--- a/src/mesa/drivers/dri/common/drirc
+++ b/src/mesa/drivers/dri/common/drirc
@@ -116,5 +116,9 @@ TODO: document the other workarounds.
         <application name="Tropico 5" executable="Tropico5">
             <option name="allow_higher_compat_version" value="true" />
+        <application name="The Culling" executable="Victory">
+            <option name="force_glsl_version" value="440" />
+        </application>

More information about the mesa-dev mailing list