Added error check for alDeleteSource.
This commit is contained in:
parent
cf98e049b0
commit
4440c7e40a
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user