Skip to content

Commit

Permalink
Avoid LL_ERRS when wgl_ARB_pixel_format is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-linden committed Sep 18, 2024
1 parent 9241fb8 commit 106be48
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions indra/llwindow/llwindowwin32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1630,9 +1630,11 @@ const S32 max_format = (S32)num_formats - 1;
}
else
{
LLError::LLUserWarningMsg::show(mCallbacks->translateString("MBVideoDrvErr"));
// mWindowHandle is 0, going to crash either way
LL_ERRS("Window") << "No wgl_ARB_pixel_format extension!" << LL_ENDL;
LL_WARNS("Window") << "No wgl_ARB_pixel_format extension!" << LL_ENDL;
// mWindowHandle is 0, going to crash either way, shutdown same as any other gGLManager.initGL() failure
OSMessageBox(mCallbacks->translateString("MBVideoDrvErr"), mCallbacks->translateString("MBError"), OSMB_OK);
close();
return false;
}

// Verify what pixel format we actually received.
Expand Down

0 comments on commit 106be48

Please sign in to comment.