Skip to content

Commit

Permalink
renderer/glimp: new GL detection and selection code
Browse files Browse the repository at this point in the history
- detect best configuration possible
- try custom configuration if exists
- if no custom configuration or it fails,
  load the best configuration possible
  • Loading branch information
illwieckz committed Jun 6, 2021
1 parent 5416e9b commit 8228953
Show file tree
Hide file tree
Showing 3 changed files with 269 additions and 148 deletions.
2 changes: 1 addition & 1 deletion src/engine/client/cl_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2668,7 +2668,7 @@ void CL_StartHunkUsers()
if ( !cls.rendererStarted )
{
CL_ShutdownRef();
Sys::Error( "Couldn't load a renderer" );
Sys::Error( "Couldn't load a renderer." );
}

if ( !Audio::Init() ) {
Expand Down
4 changes: 2 additions & 2 deletions src/engine/renderer/tr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -965,11 +965,11 @@ ScreenshotCmd screenshotPNGRegistration("screenshotPNG", ssFormat_t::SSF_PNG, "p

if ( profile == GL_CONTEXT_CORE_PROFILE_BIT )
{
Log::Debug("%sHaving a core profile", Color::ToString( Color::Green ) );
Log::Notice("%sHaving a core profile", Color::ToString( Color::Green ) );
}
else
{
Log::Debug("%sHaving a compatibility profile", Color::ToString( Color::Red ) );
Log::Notice("%sHaving a compatibility profile", Color::ToString( Color::Red ) );
}

// check if context is forward compatible
Expand Down
Loading

0 comments on commit 8228953

Please sign in to comment.