mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-05-10 19:01:50 +00:00
Fix errors
This commit is contained in:
parent
d2e3c832da
commit
f1207ab4fe
1 changed files with 1 additions and 6 deletions
|
|
@ -1722,8 +1722,6 @@ void I_StartupHardwareGraphics(void)
|
||||||
#ifdef HWRENDER
|
#ifdef HWRENDER
|
||||||
static boolean glstartup = false;
|
static boolean glstartup = false;
|
||||||
if (!glstartup)
|
if (!glstartup)
|
||||||
{
|
|
||||||
if (rendermode == render_opengl)
|
|
||||||
{
|
{
|
||||||
HWD.pfnInit = hwSym("Init",NULL);
|
HWD.pfnInit = hwSym("Init",NULL);
|
||||||
HWD.pfnFinishUpdate = NULL;
|
HWD.pfnFinishUpdate = NULL;
|
||||||
|
|
@ -1760,10 +1758,7 @@ void I_StartupHardwareGraphics(void)
|
||||||
HWD.pfnLoadCustomShader = hwSym("LoadCustomShader",NULL);
|
HWD.pfnLoadCustomShader = hwSym("LoadCustomShader",NULL);
|
||||||
HWD.pfnInitCustomShaders = hwSym("InitCustomShaders",NULL);
|
HWD.pfnInitCustomShaders = hwSym("InitCustomShaders",NULL);
|
||||||
|
|
||||||
// check gl renderer lib
|
if (!HWD.pfnInit()) // let load the OpenGL library
|
||||||
if (HWD.pfnGetRenderVersion() != VERSION)
|
|
||||||
I_Error("%s", M_GetText("The version of the renderer doesn't match the version of the executable\nBe sure you have installed SRB2 properly.\n"));
|
|
||||||
if (!HWD.pfnInit(I_Error)) // let load the OpenGL library
|
|
||||||
rendermode = render_soft;
|
rendermode = render_soft;
|
||||||
else
|
else
|
||||||
glstartup = true;
|
glstartup = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue