gamnit: fix "mismatching precision qualifiers" error on recent Intel GPU
authorAlexis Laferrière <alexis.laf@xymus.net>
Mon, 25 Sep 2017 12:38:37 +0000 (08:38 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 25 Sep 2017 15:11:12 +0000 (11:11 -0400)
Reported-by: Romain Chanoir <romain.chanoir@viacesi.fr>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/gamnit/depth/more_materials.nit

index d153954..2546da3 100644 (file)
@@ -329,7 +329,7 @@ class BlinnPhongProgram
                uniform mat4 rotation;
 
                // Lights config
-               uniform int light_kind;
+               uniform lowp int light_kind;
                uniform vec3 light_center;
                uniform mat4 light_mvp;
 
@@ -402,7 +402,7 @@ class BlinnPhongProgram
                uniform sampler2D map_normal;
 
                // Shadow
-               uniform int light_kind;
+               uniform lowp int light_kind;
                uniform bool use_shadows;
                uniform sampler2D depth_texture;
                uniform float depth_texture_size;