Finally got OpenGL to play nicely.