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
path: root/intern
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-05-16 16:56:09 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-05-16 16:56:09 +0400
commit0f933eb84796d46debc7c19ae33c28f6f9c411cc (patch)
treef85a789fc0ff4bb5d3673b3a60f8a3a5067d58b0 /intern
parentb063d2f6212d181a9a766b2e1138336a11519463 (diff)
* Fix for another OpenAL compile error on MSVC.
Diffstat (limited to 'intern')
-rw-r--r--intern/SoundSystem/openal/SND_OpenALDevice.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp
index 6b0e863e73d..424a05246ac 100644
--- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp
+++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp
@@ -645,7 +645,11 @@ int SND_OpenALDevice::GetPlayState(int id)
int alstate = 0;
int result = 0;
+#ifdef __APPLE__
alGetSourcei(m_sources[id], AL_SOURCE_STATE, &alstate);
+#else
+ alGetSourceiv(m_sources[id], AL_SOURCE_STATE, &alstate);
+#endif
switch(alstate)
{