mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-01-31 13:40:48 +00:00
Added support for OpenGL 3.2 context debugging using SDL 2.0
This commit is contained in:
parent
b7d3481f57
commit
823ea36ffe
1 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue