Context and OpenGL State Cache Fixes