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:
fayjf 2005-07-05 14:39:07 +00:00
parent e64851b09c
commit 3ae354ad4b

View File

@ -1599,13 +1599,13 @@ LRESULT CALLBACK fgWindowProc( HWND hWnd, UINT uMsg, WPARAM wParam,
if( fgStructure.MenuContext )
wglMakeCurrent( window->Window.Device,
fgStructure.MenuContext->Context
fgStructure.MenuContext->MContext
);
else
{
fgStructure.MenuContext =
(SFG_MenuContext *)malloc( sizeof(SFG_MenuContext) );
fgStructure.MenuContext->Context =
fgStructure.MenuContext->MContext =
wglCreateContext( window->Window.Device );
}