projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
simplified check for whether opengl 2.1+ context is requested.
[freeglut]
/
src
/
fg_window.c
diff --git
a/src/fg_window.c
b/src/fg_window.c
index
e7f9275
..
06efa03
100644
(file)
--- a/
src/fg_window.c
+++ b/
src/fg_window.c
@@
-70,16
+70,9
@@
extern void fgPlatformGlutFullScreenToggle( SFG_Window *win );
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */
/* -- PRIVATE FUNCTIONS ---------------------------------------------------- */
-int fghIsLegacyContextVersionRequested( void )
-{
- return fgState.MajorVersion < 2 || (fgState.MajorVersion == 2 && fgState.MinorVersion <= 1);
-}
-
int fghIsLegacyContextRequested( void )
{
int fghIsLegacyContextRequested( void )
{
- return fghIsLegacyContextVersionRequested() &&
- fgState.ContextFlags == 0 &&
- fgState.ContextProfile == 0;
+ return fgState.MajorVersion < 2 || (fgState.MajorVersion == 2 && fgState.MinorVersion <= 1);
}
int fghNumberOfAuxBuffersRequested( void )
}
int fghNumberOfAuxBuffersRequested( void )