mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
ref: gl: add -glnoerr flag that enables no error context, for possible performance gains
This commit is contained in:
@@ -1405,6 +1405,12 @@ void GL_SetupAttributes( int safegl )
|
||||
glw_state.extended = true;
|
||||
}
|
||||
|
||||
if( gEngfuncs.Sys_CheckParm( "-glnoerr" ))
|
||||
{
|
||||
gEngfuncs.Con_Reportf( "Creating a no-error GL context...\n" );
|
||||
gEngfuncs.GL_SetAttribute( REF_GL_CONTEXT_NO_ERROR, 1 );
|
||||
}
|
||||
|
||||
if( safegl > SAFE_DONTCARE )
|
||||
{
|
||||
safegl = -1; // can't retry anymore, can only shutdown engine
|
||||
|
||||
Reference in New Issue
Block a user