mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
consistenly cast dynamic loading from generic pointer to fn pointer signature.
This commit is contained in:
parent
8c0904f0c8
commit
2b4598d536
2 changed files with 13 additions and 13 deletions
|
@ -561,18 +561,18 @@ QAL_Init()
|
|||
}
|
||||
|
||||
if (qalcIsExtensionPresent(device, "ALC_EXT_EFX") != AL_FALSE) {
|
||||
qalGenFilters = qalGetProcAddress("alGenFilters");
|
||||
qalFilteri = qalGetProcAddress("alFilteri");
|
||||
qalFilterf = qalGetProcAddress("alFilterf");
|
||||
qalDeleteFilters = qalGetProcAddress("alDeleteFilters");
|
||||
qalAuxiliaryEffectSloti = qalGetProcAddress("alAuxiliaryEffectSloti");
|
||||
qalGenEffects = qalGetProcAddress("alGenEffects");
|
||||
qalGenAuxiliaryEffectSlots = qalGetProcAddress("alGenAuxiliaryEffectSlots");
|
||||
qalEffectf = qalGetProcAddress("alEffectf");
|
||||
qalEffecti = qalGetProcAddress("alEffecti");
|
||||
qalEffectfv = qalGetProcAddress("alEffectfv");
|
||||
qalDeleteAuxiliaryEffectSlots = qalGetProcAddress("alDeleteAuxiliaryEffectSlots");
|
||||
qalDeleteEffects = qalGetProcAddress("alDeleteEffects");
|
||||
qalGenFilters = (LPALGENFILTERS)qalGetProcAddress("alGenFilters");
|
||||
qalFilteri = (LPALFILTERI)qalGetProcAddress("alFilteri");
|
||||
qalFilterf = (LPALFILTERF)qalGetProcAddress("alFilterf");
|
||||
qalDeleteFilters = (LPALDELETEFILTERS)qalGetProcAddress("alDeleteFilters");
|
||||
qalAuxiliaryEffectSloti = (LPALAUXILIARYEFFECTSLOTI)qalGetProcAddress("alAuxiliaryEffectSloti");
|
||||
qalGenEffects = (LPALGENEFFECTS)qalGetProcAddress("alGenEffects");
|
||||
qalGenAuxiliaryEffectSlots = (LPALGENAUXILIARYEFFECTSLOTS)qalGetProcAddress("alGenAuxiliaryEffectSlots");
|
||||
qalEffectf = (LPALEFFECTF)qalGetProcAddress("alEffectf");
|
||||
qalEffecti = (LPALEFFECTI)qalGetProcAddress("alEffecti");
|
||||
qalEffectfv = (LPALEFFECTFV)qalGetProcAddress("alEffectfv");
|
||||
qalDeleteAuxiliaryEffectSlots = (LPALDELETEAUXILIARYEFFECTSLOTS)qalGetProcAddress("alDeleteAuxiliaryEffectSlots");
|
||||
qalDeleteEffects = (LPALDELETEEFFECTS)qalGetProcAddress("alDeleteEffects");
|
||||
} else {
|
||||
qalGenFilters = NULL;
|
||||
qalFilteri = NULL;
|
||||
|
|
|
@ -413,7 +413,7 @@ VID_LoadRenderer(void)
|
|||
}
|
||||
|
||||
// Mkay, let's load the requested renderer.
|
||||
GetRefAPI = Sys_LoadLibrary(reflib_path, "GetRefAPI", &reflib_handle);
|
||||
GetRefAPI = (GetRefAPI_t)Sys_LoadLibrary(reflib_path, "GetRefAPI", &reflib_handle);
|
||||
|
||||
// Okay, we couldn't load it. It's up to the
|
||||
// caller to recover from this.
|
||||
|
|
Loading…
Reference in a new issue