From 6c7c5018b532a95b66bacdef323590ba56cdad3d Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Thu, 5 May 2011 06:17:27 +0200 Subject: [PATCH 4/6] C++: Casts --- intern/SoundSystem/openal/SND_OpenALDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/intern/SoundSystem/openal/SND_OpenALDevice.cpp b/intern/SoundSystem/openal/SND_OpenALDevice.cpp index 9367301..5d7d7ba 100644 --- a/intern/SoundSystem/openal/SND_OpenALDevice.cpp +++ b/intern/SoundSystem/openal/SND_OpenALDevice.cpp @@ -224,7 +224,7 @@ SND_OpenALDevice::SND_OpenALDevice() m_context = alcCreateContext(dev, NULL); if (m_context) { - alcMakeContextCurrent(m_context); + alcMakeContextCurrent(static_cast(m_context)); m_audio = true; } } @@ -291,7 +291,7 @@ void SND_OpenALDevice::MakeCurrent() const SND_OpenALDevice::~SND_OpenALDevice() { if (m_context) { - alcMakeContextCurrent(m_context); + alcMakeContextCurrent(static_cast(m_context)); if (m_buffersinitialized) alDeleteBuffers(NUM_BUFFERS, m_buffers); -- 2.2.1