Implementing the new menu context variable names in Windows ...
authorJohn F. Fay <johnffay@nettally.com>
Tue, 5 Jul 2005 14:39:07 +0000 (14:39 +0000)
committerJohn F. Fay <johnffay@nettally.com>
Tue, 5 Jul 2005 14:39:07 +0000 (14:39 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@666 7f0cb862-5218-0410-a997-914c9d46530a

src/freeglut_main.c

index 2fb73aa..c6d9c73 100644 (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 );
             }