Merge pull request #1122 from devnexen/fix_dyn_symb_loading_sig

consistenly cast dynamic loading from generic pointer to fn pointer s…
This commit is contained in:
Yamagi 2024-07-11 21:15:51 +02:00 committed by GitHub
commit 7b6518060e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 13 deletions

View file

@ -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;

View file

@ -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.