#include <GL/freeglut.h>
#include "fg_internal.h"
+#include "x11/fg_window_x11_glx.h"
/*
* Queries the GL context about some attributes
int fgPlatformGetConfig( int attribute )
{
int returnValue = 0;
- int result; /* Not checked */
+ int result __fg_unused; /* Not checked */
if( fgStructure.CurrentWindow )
result = glXGetFBConfigAttrib( fgDisplay.pDisplay.Display,
GLX_QUERY( GLUT_WINDOW_ACCUM_BLUE_SIZE, GLX_ACCUM_BLUE_SIZE );
GLX_QUERY( GLUT_WINDOW_ACCUM_ALPHA_SIZE, GLX_ACCUM_ALPHA_SIZE );
GLX_QUERY( GLUT_WINDOW_STEREO, GLX_STEREO );
+ GLX_QUERY( GLUT_WINDOW_SRGB, GLX_FRAMEBUFFER_SRGB_CAPABLE_ARB);
# undef GLX_QUERY
return fghChooseConfig(&config);
}
- /* This is system-dependant */
+ /* This is system-dependent */
case GLUT_WINDOW_FORMAT_ID:
if( fgStructure.CurrentWindow == NULL )
return 0;
if (fbconfigArray != NULL)
{
int * temp_array;
- int result; /* Returned by glXGetFBConfigAttrib. Not checked. */
+ int result __fg_unused; /* Returned by glXGetFBConfigAttrib. Not checked. */
int previous_value;
int i;