/** Decrements this texture's reference count. If the reference count of a managed texture goes * to zero, the texture is disposed (and is no longer usable). */ public void release () { if (config.managed) { assert refs > 0 : "Released a texture with no references!"; if (--refs == 0) close(); } }
/** Disposes this image's default texture, if it has been already created. */ public void close () { if (texture != null) texture.close(); }
/** Decrements this texture's reference count. If the reference count of a managed texture goes * to zero, the texture is disposed (and is no longer usable). */ public void release () { if (config.managed) { assert refs > 0 : "Released a texture with no references!"; if (--refs == 0) close(); } }
protected void finalize () { this.close(); } }
protected void finalize () { this.close(); } }
/** Disposes this image's default texture, if it has been already created. */ public void close () { if (texture != null) texture.close(); }
public void onEmit () { close(); } };
public void onEmit () { close(); } };