Przeglądaj źródła

fixed loadingTextureColor (close #156)

Nicolas Cannasse 9 lat temu
rodzic
commit
ffd708b0de
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      h3d/impl/GlDriver.hx

+ 4 - 2
h3d/impl/GlDriver.hx

@@ -241,8 +241,10 @@ class GlDriver extends Driver {
 		case Textures:
 		case Textures:
 			for( i in 0...s.textures.length ) {
 			for( i in 0...s.textures.length ) {
 				var t = buf.tex[i];
 				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 ) {
 				if( t != null && t.t == null && t.realloc != null ) {
 					t.alloc();
 					t.alloc();
 					t.realloc();
 					t.realloc();