first try for osx core profile

now it doesn't crash, but it still hangs on startup
This commit is contained in:
degasus 2013-01-31 12:20:17 +01:00
parent 01d8c21e1d
commit c05f66bdd0
3 changed files with 8 additions and 2 deletions

View file

@ -141,9 +141,12 @@ void VideoSoftware::Shutdown()
void VideoSoftware::Video_Prepare()
{
GLInterface->MakeCurrent();
// Init extension support.
// Init extension support.
{
#ifndef USE_GLES
#ifdef __APPLE__
glewExperimental = 1;
#endif
if (glewInit() != GLEW_OK) {
ERROR_LOG(VIDEO, "glewInit() failed!Does your video card support OpenGL 2.x?");
return;