mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2024-11-25 21:41:42 +00:00
Added check for Gallium drivers to use GLSL ES 3.00. #137
This commit is contained in:
parent
7e49606cc8
commit
9147482a37
2 changed files with 5 additions and 5 deletions
|
@ -62,12 +62,12 @@ public:
|
||||||
static void ShutDown();
|
static void ShutDown();
|
||||||
|
|
||||||
// wrapper to idCommon functions
|
// wrapper to idCommon functions
|
||||||
static void Printf( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
static void Printf( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
||||||
static void PrintfIf( const bool test, VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 2, 3 );
|
static void PrintfIf( const bool test, VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 2, 3 );
|
||||||
NO_RETURN static void Error( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
NO_RETURN static void Error( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
||||||
NO_RETURN static void FatalError( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
NO_RETURN static void FatalError( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
||||||
static void Warning( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
static void Warning( VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 1, 2 );
|
||||||
static void WarningIf( const bool test, VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 2, 3 );
|
static void WarningIf( const bool test, VERIFY_FORMAT_STRING const char* fmt, ... ) ID_STATIC_ATTRIBUTE_PRINTF( 2, 3 );
|
||||||
|
|
||||||
// the extra check for mainThreadInitialized is necessary for this to be accurate
|
// the extra check for mainThreadInitialized is necessary for this to be accurate
|
||||||
// when called by startup code that happens before idLib::Init
|
// when called by startup code that happens before idLib::Init
|
||||||
|
|
|
@ -342,7 +342,7 @@ static void R_CheckPortableExtensions()
|
||||||
}
|
}
|
||||||
|
|
||||||
// RB: Mesa support
|
// RB: Mesa support
|
||||||
if( idStr::Icmpn( glConfig.renderer_string, "Mesa", 4 ) == 0 || idStr::Icmpn( glConfig.renderer_string, "X.org", 4 ) == 0 )
|
if( idStr::Icmpn( glConfig.renderer_string, "Mesa", 4 ) == 0 || idStr::Icmpn( glConfig.renderer_string, "X.org", 4 ) == 0 || idStr::Icmpn( glConfig.renderer_string, "Gallium", 7 ) == 0 )
|
||||||
{
|
{
|
||||||
glConfig.driverType = GLDRV_OPENGL_MESA;
|
glConfig.driverType = GLDRV_OPENGL_MESA;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue