mirror of
https://github.com/dhewm/dhewm3.git
synced 2025-03-21 18:21:08 +00:00
ignore errors unloading OpenAL data. mitigates #178
This commit is contained in:
parent
b4a029c234
commit
636c3a0b54
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue