Implementing the new menu context variable names in Windows ...
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@666 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
e64851b09c
commit
3ae354ad4b
@ -1599,13 +1599,13 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
|
|||||||
|
|
||||||
if( fgStructure.MenuContext )
|
if( fgStructure.MenuContext )
|
||||||
wglMakeCurrent( window->Window.Device,
|
wglMakeCurrent( window->Window.Device,
|
||||||
fgStructure.MenuContext->Context
|
fgStructure.MenuContext->MContext
|
||||||
);
|
);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fgStructure.MenuContext =
|
fgStructure.MenuContext =
|
||||||
(SFG_MenuContext *)malloc( sizeof(SFG_MenuContext) );
|
(SFG_MenuContext *)malloc( sizeof(SFG_MenuContext) );
|
||||||
fgStructure.MenuContext->Context =
|
fgStructure.MenuContext->MContext =
|
||||||
wglCreateContext( window->Window.Device );
|
wglCreateContext( window->Window.Device );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user