Avoid LL_ERRS when wgl_ARB_pixel_format is not supported (#2606)

secondlife/viewer#2599
master
Brad Linden 2024-09-18 18:17:02 -07:00 committed by GitHub
parent c5a2235e7a
commit ecfd66fb09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 3 deletions

View File

@ -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;
// cannot proceed without wgl_ARB_pixel_format extension, 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.