Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank van Beek <frank@iae.nl>2003-01-04 19:46:49 +0300
committerFrank van Beek <frank@iae.nl>2003-01-04 19:46:49 +0300
commit38e5b5899cb46ef260308ae990cb960b6a978708 (patch)
treeda78acd3158a4d2d06f6f203f3fe496db74fa0f0 /intern/SoundSystem
parent24f546162efb499025538518f5b0f003bd1d6d99 (diff)
- on windows alcGetError() has no arguments. On other platforms it does.
Diffstat (limited to 'intern/SoundSystem')
-rw-r--r--intern/SoundSystem/openal/SND_OpenALDevice.cpp3
1 files changed, 3 insertions, 0 deletions
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