onTextureDispose method
Implementation
void onTextureDispose(Event event) {
final texture = event.target;
texture.removeEventListener('dispose', onTextureDispose);
deallocateTexture(texture);
if (texture is VideoTexture) {
_videoTextures.remove(texture);
}
if (texture is OpenGLTexture) {
_videoTextures.remove(texture);
}
}