OpenGL: Add OpenGL cache for avoid glGet* calls.