浏览代码

Fix for textures on gl.

clementlandrin 1 年之前
父节点
当前提交
0f86dfd76b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      h3d/impl/GlDriver.hx

+ 1 - 1
h3d/impl/GlDriver.hx

@@ -343,7 +343,7 @@ class GlDriver extends Driver {
 			case TArray(t,SConst(n)): tt = t; count = n;
 			default:
 			}
-			if( tt != curT ) {
+			if( !tt.equals(curT) ) {
 				curT = tt;
 				name = switch( tt ) {
 				case TSampler(dim,arr):