gles2rice: Unified some texture handling in OGLRender.