浏览代码

Add precision for sampler2DArray (#1046)

rcstuber 3 年之前
父节点
当前提交
1a6a1253d1
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);