Fixed broken X11 menus. The MPX patch would naively just call the
[freeglut] / src / fg_window.c
index 9a980f8..9760858 100644 (file)
@@ -28,6 +28,7 @@
 #define FREEGLUT_BUILDING_LIB
 #include <GL/freeglut.h>
 #include "fg_internal.h"
+#include "fg_gl2.h"
 
 /*
  * TODO BEFORE THE STABLE RELEASE:
@@ -147,6 +148,10 @@ void fgOpenWindow( SFG_Window* window, const char* title,
 #endif
     window->Window.attribute_v_coord = -1;
     window->Window.attribute_v_normal = -1;
+
+    fgInitGL2();
+
+    window->State.NeedToInitContext = GL_TRUE;
 }
 
 /*