Merge "fix memory corruption when retriving GL_MAX_VIEWPORT_DIMS"