mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 20:51:31 +00:00
Use correct name to query the refresher
This commit is contained in:
parent
a8b9183664
commit
5523cc8de2
1 changed files with 2 additions and 1 deletions
|
@ -363,7 +363,7 @@ VID_LoadRefresh(char *name)
|
|||
ri.Vid_MenuInit = VID_MenuInit;
|
||||
ri.Vid_NewWindow = VID_NewWindow;
|
||||
|
||||
if ((GetRefAPI = (void *)GetProcAddress(reflib_library, "GetRefAPI")) == 0)
|
||||
if ((GetRefAPI = (void *)GetProcAddress(reflib_library, "R_GetRefAPI")) == 0)
|
||||
{
|
||||
Com_Error(ERR_FATAL, "GetProcAddress failed on %s", name);
|
||||
}
|
||||
|
@ -394,6 +394,7 @@ VID_LoadRefresh(char *name)
|
|||
if (re.Init(global_hInstance, 0) == -1)
|
||||
{
|
||||
re.Shutdown();
|
||||
Com_Error(ERR_FATAL, "re.Init() failed");
|
||||
VID_FreeReflib();
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue