mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 17:22:12 +00:00
Fallback to Software if the renderer version doesn't match
This commit is contained in:
parent
b6089ccdaf
commit
cca3665525
1 changed files with 9 additions and 3 deletions
|
@ -1803,13 +1803,19 @@ void I_StartupHardwareGraphics(void)
|
||||||
HWD.pfnMakeScreenFinalTexture=hwSym("MakeScreenFinalTexture",NULL);
|
HWD.pfnMakeScreenFinalTexture=hwSym("MakeScreenFinalTexture",NULL);
|
||||||
HWD.pfnDrawScreenFinalTexture=hwSym("DrawScreenFinalTexture",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;
|
rendermode = render_soft;
|
||||||
setrenderneeded = 0;
|
setrenderneeded = 0;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
hwrenderloaded = true;
|
|
||||||
glstartup = true;
|
glstartup = true;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue