ignore errors unloading OpenAL data. mitigates #178

This commit is contained in:
Corey O'Connor 2019-05-13 09:51:57 -07:00 committed by Daniel Gibson
parent b4a029c234
commit 636c3a0b54

View file

@ -576,12 +576,12 @@ void idSoundSample::PurgeSoundSample() {
alGetError();
alDeleteBuffers( 1, &openalBuffer );
if ( alGetError() != AL_NO_ERROR ) {
common->Error( "idSoundCache: error unloading data from OpenAL hardware buffer" );
} else {
openalBuffer = 0;
hardwareBuffer = false;
common->Warning( "idSoundCache: error unloading data from OpenAL hardware buffer" );
}
openalBuffer = 0;
hardwareBuffer = false;
if ( amplitudeData ) {
soundCacheAllocator.Free( amplitudeData );
amplitudeData = NULL;