Added support for OpenGL 3.2 context debugging using SDL 2.0

This commit is contained in:
Robert Beckebans 2012-12-16 12:22:07 +01:00
parent b7d3481f57
commit 823ea36ffe

View file

@ -185,6 +185,11 @@ bool GLimp_Init( glimpParms_t parms )
{
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MAJOR_VERSION, 3 );
SDL_GL_SetAttribute( SDL_GL_CONTEXT_MINOR_VERSION, 2 );
if( r_debugContext.GetBool() )
{
SDL_GL_SetAttribute( SDL_GL_CONTEXT_FLAGS, SDL_GL_CONTEXT_DEBUG_FLAG );
}
}
if( r_useOpenGL32.GetInteger() > 1 )
@ -253,7 +258,7 @@ bool GLimp_Init( glimpParms_t parms )
if( !window )
{
common->Warning( "No usable GL mode found: %s", SDL_GetError() );
common->Printf( "No usable GL mode found: %s", SDL_GetError() );
return false;
}