consistenly cast dynamic loading from generic pointer to fn pointer signature.

This commit is contained in:
David Carlier 2024-07-06 18:40:13 +01:00
parent 8c0904f0c8
commit 2b4598d536
No known key found for this signature in database
GPG key ID: D308BD11AB42D054
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.