#define FREEGLUT_BUILDING_LIB
#include <GL/freeglut.h>
#include "fg_internal.h"
+#include "fg_gl2.h"
/*
* TODO BEFORE THE STABLE RELEASE:
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */
-int fghIsLegacyContextVersionRequested( void )
-{
- return fgState.MajorVersion < 2 || (fgState.MajorVersion == 2 && fgState.MinorVersion <= 1);
-}
-
int fghIsLegacyContextRequested( void )
{
- return fghIsLegacyContextVersionRequested() &&
- fgState.ContextFlags == 0 &&
- fgState.ContextProfile == 0;
+ return fgState.MajorVersion < 2 || (fgState.MajorVersion == 2 && fgState.MinorVersion <= 1);
}
int fghNumberOfAuxBuffersRequested( void )
glReadBuffer ( GL_FRONT );
}
#endif
+ window->Window.attribute_v_coord = -1;
+ window->Window.attribute_v_normal = -1;
+
+ fgInitGL2();
+
+ window->State.NeedToInitContext = GL_TRUE;
}
/*