OpenGL context is not made current on Win32 until fgSetWindow is called.
This resolves severe problems observed in GLUI applications. git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@424 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
3585f68a7f
commit
d07ef326cd
@ -530,6 +530,8 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
fgSetWindow( window );
|
||||||
|
|
||||||
window->Window.DoubleBuffered =
|
window->Window.DoubleBuffered =
|
||||||
( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0;
|
( fgState.DisplayMode & GLUT_DOUBLE ) ? 1 : 0;
|
||||||
|
|
||||||
@ -538,7 +540,6 @@ void fgOpenWindow( SFG_Window* window, const char* title,
|
|||||||
glDrawBuffer ( GL_FRONT );
|
glDrawBuffer ( GL_FRONT );
|
||||||
glReadBuffer ( GL_FRONT );
|
glReadBuffer ( GL_FRONT );
|
||||||
}
|
}
|
||||||
fgSetWindow( window );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user