浏览代码

fixed loadingTextureColor (close #156)

Nicolas Cannasse 9 年之前
父节点
当前提交
ffd708b0de
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      h3d/impl/GlDriver.hx

+ 4 - 2
h3d/impl/GlDriver.hx

@@ -241,8 +241,10 @@ class GlDriver extends Driver {
 		case Textures:
 			for( i in 0...s.textures.length ) {
 				var t = buf.tex[i];
-				if( t == null || t.isDisposed() )
-					t = h3d.mat.Texture.fromColor(loadingTextureColor,(loadingTextureColor>>>24)/255);
+				if( t == null || t.isDisposed() ) {
+					var color = h3d.mat.Defaults.loadingTextureColor;
+					t = h3d.mat.Texture.fromColor(color,(color>>>24)/255);
+				}
 				if( t != null && t.t == null && t.realloc != null ) {
 					t.alloc();
 					t.realloc();