Refactor OpenGLTexture