|
@@ -106,6 +106,10 @@ void GFXGLDevice::enumerateAdapters( Vector<GFXAdapter*> &adapterList )
|
|
AssertFatal(0, err );
|
|
AssertFatal(0, err );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // Init GL
|
|
|
|
+ loadGLCore();
|
|
|
|
+ loadGLExtensions(tempContext);
|
|
|
|
+
|
|
//check minimun Opengl 3.2
|
|
//check minimun Opengl 3.2
|
|
int major, minor;
|
|
int major, minor;
|
|
glGetIntegerv(GL_MAJOR_VERSION, &major);
|
|
glGetIntegerv(GL_MAJOR_VERSION, &major);
|
|
@@ -114,8 +118,6 @@ void GFXGLDevice::enumerateAdapters( Vector<GFXAdapter*> &adapterList )
|
|
{
|
|
{
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
- loadGLCore();
|
|
|
|
|
|
|
|
GFXAdapter *toAdd = new GFXAdapter;
|
|
GFXAdapter *toAdd = new GFXAdapter;
|
|
toAdd->mIndex = 0;
|
|
toAdd->mIndex = 0;
|
|
@@ -163,7 +165,7 @@ void GFXGLDevice::init( const GFXVideoMode &mode, PlatformWindow *window )
|
|
PlatformGL::MakeCurrentGL( x11Window, mContext );
|
|
PlatformGL::MakeCurrentGL( x11Window, mContext );
|
|
|
|
|
|
loadGLCore();
|
|
loadGLCore();
|
|
- loadGLExtensions(0);
|
|
|
|
|
|
+ loadGLExtensions(mContext);
|
|
|
|
|
|
// It is very important that extensions be loaded before we call initGLState()
|
|
// It is very important that extensions be loaded before we call initGLState()
|
|
initGLState();
|
|
initGLState();
|