gles2rice: Fixed mipmapping/anisotropic filt, integrated upstream code.

OGLTexture.cpp fully merged with upstream.