Przeglądaj źródła

Add precision for sampler2DArray (#1046)

rcstuber 3 lat temu
rodzic
commit
1a6a1253d1
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      hxsl/GlslOut.hx

+ 2 - 0
hxsl/GlslOut.hx

@@ -659,8 +659,10 @@ class GlslOut {
 		
 		if (isVertex) {
 			decl("precision highp float;");
+			decl("precision highp sampler2DArray;");
 		} else {
 			decl("precision mediump float;");
+			decl("precision mediump sampler2DArray;");
 		}
 
 		initVars(s);