Skip to content

Commit

Permalink
Correctly handle bogus format token in alBufferData().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 31, 2006
1 parent e959b5d commit b0fb8f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osx/alBuffer.c
Expand Up @@ -1385,7 +1385,8 @@ static ALboolean __alDoBufferConvert(ALcontext *ctx, ALbuffer *buffer,

default:
//printf("tried to buffer %d data.\n", format);
__alSetError(AL_ILLEGAL_ENUM);
__alSetError(AL_ILLEGAL_ENUM);
return(AL_FALSE);
} // switch

// Fast path if no sample rate conversion needed...
Expand Down

0 comments on commit b0fb8f0

Please sign in to comment.