You should call ReadOpenGLCore after InitOpenGL, I'm not sure if that's the problem though.