X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_init.c;fp=src%2Ffreeglut_init.c;h=83b78041fafeab961a8f2bce992eafa81583c616;hb=e9ebb8053106d2504605c70a1fd777a52f1d9da4;hp=c9bd04d56942a797889abb0fda3a30a00e139298;hpb=fc6f0b39d73b3d9f6ee900f23015fac4f692c644;p=freeglut diff --git a/src/freeglut_init.c b/src/freeglut_init.c index c9bd04d..83b7804 100644 --- a/src/freeglut_init.c +++ b/src/freeglut_init.c @@ -89,7 +89,8 @@ SFG_State fgState = { { -1, -1, GL_FALSE }, /* Position */ 4, /* SampleNumber */ 1, /* MajorVersion */ 0, /* MajorVersion */ - 0 /* ContextFlags */ + 0, /* ContextFlags */ + 0 /* ContextProfile */ }; @@ -425,6 +426,7 @@ void fgDeinitialize( void ) fgState.MajorVersion = 1; fgState.MinorVersion = 0; fgState.ContextFlags = 0; + fgState.ContextProfile = 0; fgState.Initialised = GL_FALSE; @@ -1153,4 +1155,10 @@ void FGAPIENTRY glutInitContextFlags( int flags ) fgState.ContextFlags = flags; } +void FGAPIENTRY glutInitContextProfile( int profile ) +{ + /* We will make use of this value when creating a new OpenGL context... */ + fgState.ContextProfile = profile; +} + /*** END OF FILE ***/