Added error check for alDeleteSource.

This commit is contained in:
hiker 2017-08-30 17:46:07 +10:00
parent cf98e049b0
commit 4440c7e40a

View File

@ -70,6 +70,7 @@ SFXOpenAL::~SFXOpenAL()
if (m_status!=SFX_UNKNOWN && m_status!=SFX_NOT_INITIALISED) if (m_status!=SFX_UNKNOWN && m_status!=SFX_NOT_INITIALISED)
{ {
alDeleteSources(1, &m_sound_source); alDeleteSources(1, &m_sound_source);
SFXManager::checkError("deleting a source");
} }
if (m_owns_buffer && m_sound_buffer) if (m_owns_buffer && m_sound_buffer)