|
@@ -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();
|