Clear initial ALC version vars before querying it

This commit is contained in:
Chris Robinson
2017-06-29 23:21:07 -07:00
parent 8a0d1e5191
commit ce9222b686
+1 -1
View File
@@ -195,7 +195,7 @@ static void AddModule(HMODULE module, const WCHAR *name)
LOAD_PROC(alDistanceModel);
if(!err)
{
ALCint alc_ver[2];
ALCint alc_ver[2] = { 0, 0 };
wcsncpy(newdrv.Name, name, 32);
newdrv.Module = module;
newdrv.alcGetIntegerv(NULL, ALC_MAJOR_VERSION, 1, &alc_ver[0]);