Browse Source

Update GLSLCompat.glsllib

Ryan McDonough 1 year ago
parent
commit
56c1ed0ef5
1 changed files with 4 additions and 2 deletions
  1. 4 2
      jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

+ 4 - 2
jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

@@ -1,8 +1,10 @@
 #ifdef FRAGMENT_SHADER
       precision highp float;
       precision highp int;
-      precision highp sampler2DArray;
-      precision highp sampler2DShadow;
+      #if __VERSION__ >= 130
+	    precision highp sampler2DArray;        
+      #endif
+	  precision highp sampler2DShadow;
       precision highp samplerCube;
       precision highp sampler3D;
       precision highp sampler2D;