mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fallback to Software if the renderer version doesn't match
This commit is contained in:
parent
5c1b3baf18
commit
1d92fa38f6
1 changed files with 9 additions and 3 deletions
|
|
@ -1803,13 +1803,19 @@ void I_StartupHardwareGraphics(void)
|
|||
HWD.pfnMakeScreenFinalTexture=hwSym("MakeScreenFinalTexture",NULL);
|
||||
HWD.pfnDrawScreenFinalTexture=hwSym("DrawScreenFinalTexture",NULL);
|
||||
|
||||
if (!HWD.pfnInit(I_Error)) // let load the OpenGL library
|
||||
if (HWD.pfnGetRenderVersion() != VERSION)
|
||||
{
|
||||
CONS_Alert(CONS_ERROR, M_GetText("The version of the renderer doesn't match the version of the executable\nBe sure you have installed SRB2 properly.\n"));
|
||||
hwrenderloaded = false;
|
||||
}
|
||||
else
|
||||
hwrenderloaded = HWD.pfnInit(I_Error); // let load the OpenGL library
|
||||
|
||||
if (!hwrenderloaded)
|
||||
{
|
||||
rendermode = render_soft;
|
||||
setrenderneeded = 0;
|
||||
}
|
||||
else
|
||||
hwrenderloaded = true;
|
||||
glstartup = true;
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue