diff --git a/src/client/sound/qal.c b/src/client/sound/qal.c index 02a074e0..8032b804 100644 --- a/src/client/sound/qal.c +++ b/src/client/sound/qal.c @@ -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; diff --git a/src/client/vid/vid.c b/src/client/vid/vid.c index a9cbf369..dc4ef1d1 100644 --- a/src/client/vid/vid.c +++ b/src/client/vid/vid.c @@ -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.