|
@@ -60,6 +60,8 @@ class TextureCache {
|
|
|
var flags : Array<h3d.mat.Data.TextureFlags> = [Target];
|
|
|
if( isCube ) flags.push(Cube);
|
|
|
var newt = new h3d.mat.Texture(width, height, flags, format);
|
|
|
+ // make the texture disposable if we're out of memory
|
|
|
+ newt.realloc = function() {};
|
|
|
if( t != null )
|
|
|
cache.insert(position,newt);
|
|
|
else
|