From 38e5b5899cb46ef260308ae990cb960b6a978708 Mon Sep 17 00:00:00 2001 From: Frank van Beek Date: Sat, 4 Jan 2003 16:46:49 +0000 Subject: [PATCH] - on windows alcGetError() has no arguments. On other platforms it does. --- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 3c55b1e77ca..e8dd591f6c6 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -261,6 +261,9 @@ SND_OpenALDevice::SND_OpenALDevice() { #ifdef OUDE_OPENAL ALenum alc_error = ALC_NO_ERROR; // openal_2.12 +#elif _WIN32 + // alcGetError has no arguments on windows + ALenum alc_error = alcGetError(); // openal_2.14+ #else ALenum alc_error = alcGetError(NULL); // openal_2.14+ #endif