- on windows alcGetError() has no arguments. On other platforms it does.
authorFrank van Beek <frank@iae.nl>
Sat, 4 Jan 2003 16:46:49 +0000 (16:46 +0000)
committerFrank van Beek <frank@iae.nl>
Sat, 4 Jan 2003 16:46:49 +0000 (16:46 +0000)
intern/SoundSystem/openal/SND_OpenALDevice.cpp

index 3c55b1e77ca31f93249a1876ccb715a2d4880b51..e8dd591f6c60b7af50eab13903e50ed6ee885c05 100644 (file)
@@ -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