Browse Source

Add precision for sampler2DArray (#1046)

rcstuber 3 năm trước cách đây
mục cha
commit
1a6a1253d1
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);