onTextureDispose method
Implementation
void onTextureDispose(Event event) {
var texture = event.target;
texture.removeEventListener('dispose', onTextureDispose);
deallocateTexture(texture);
if (texture.isVideoTexture) {
_videoTextures.remove(texture);
}
if (texture.isOpenGLTexture) {
_videoTextures.remove(texture);
}
}