return returnValue;
case GLUT_WINDOW_BUFFER_SIZE:
- returnValue = 1 ; /* ????? */
+ returnValue = 1 ; /* TODO????? */
return returnValue;
case GLUT_WINDOW_STENCIL_SIZE:
- returnValue = 0 ; /* ????? */
+ returnValue = 0 ; /* TODO????? */
return returnValue;
case GLUT_WINDOW_X:
if ( !fghIsExtensionSupported( window->Window.pContext.Device, "WGL_ARB_create_context" ) )
{
+ /* wglCreateContextAttribsARB not found, yet the user has requested the new context creation */
+ fgWarning( "OpenGL >2.1 context requested but wglCreateContextAttribsARB is not available! Falling back to legacy context creation" );
+ /* Legacy context already created at this point in WM_CREATE path of fgPlatformWindowProc, just return */
return;
}
wglCreateContextAttribsARB = (PFNWGLCREATECONTEXTATTRIBSARBPROC) wglGetProcAddress( "wglCreateContextAttribsARB" );
if ( wglCreateContextAttribsARB == NULL )
{
- fgError( "wglCreateContextAttribsARB not found" );
+ /* wglCreateContextAttribsARB not found, yet the user has requested the new context creation */
+ fgWarning( "OpenGL >2.1 context requested but wglCreateContextAttribsARB is not available! Falling back to legacy context creation" );
+ /* Legacy context already created at this point in WM_CREATE path of fgPlatformWindowProc, just return */
+ return;
}
context = wglCreateContextAttribsARB( window->Window.pContext.Device, 0, attributes );