Просмотр исходного кода

Use precision qualifiers only in GL ES shaders (#2217)

Riccardo Balbo 1 год назад
Родитель
Сommit
1cbdcd3447
1 измененных файлов с 13 добавлено и 12 удалено
  1. 13 12
      jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

+ 13 - 12
jme3-core/src/main/resources/Common/ShaderLib/GLSLCompat.glsllib

@@ -1,15 +1,16 @@
-#ifdef FRAGMENT_SHADER
-      precision highp float;
-      precision highp int;
-      precision highp sampler2DArray;
-      precision highp sampler2DShadow;
-      precision highp samplerCube;
-      precision highp sampler3D;
-      precision highp sampler2D;
-      #if __VERSION__ >= 310
-        precision highp sampler2DMS;
-      #endif
-
+#ifdef GL_ES
+  #ifdef FRAGMENT_SHADER
+    precision highp float;
+    precision highp int;
+    precision highp sampler2DArray;
+    precision highp sampler2DShadow;
+    precision highp samplerCube;
+    precision highp sampler3D;
+    precision highp sampler2D;
+    #if __VERSION__ >= 310
+      precision highp sampler2DMS;
+    #endif
+  #endif
 #endif
 
 #if defined GL_ES