DISCL-235: Code review Friday refactorings

This is preliminary draft review
As far as I know the delete texture id is not deleting the texture from the GPU memory. So, if many movies are opened the texture memory stands still. Therefore you may have to reuse the texture ids.