diff options
author | Chris Robinson <[email protected]> | 2010-03-16 17:35:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-16 17:35:51 -0700 |
commit | f37cfc486d9f7ff84d21395f9135819f0b24f274 (patch) | |
tree | 64666af29c8814b8b8c53e4bf1d8a39cc562cb2a /OpenAL32/alState.c | |
parent | a337a59fb8c07b608944bff843b765656c56da64 (diff) |
Pass the context to alSetError
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 32d86f35..4ca25dfe 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -57,7 +57,7 @@ ALAPI ALvoid ALAPIENTRY alEnable(ALenum capability) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -90,7 +90,7 @@ ALAPI ALvoid ALAPIENTRY alDisable(ALenum capability) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -122,7 +122,7 @@ ALAPI ALboolean ALAPIENTRY alIsEnabled(ALenum capability) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -162,7 +162,7 @@ ALAPI ALboolean ALAPIENTRY alGetBoolean(ALenum pname) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -198,7 +198,7 @@ ALAPI ALdouble ALAPIENTRY alGetDouble(ALenum pname) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -234,7 +234,7 @@ ALAPI ALfloat ALAPIENTRY alGetFloat(ALenum pname) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -284,7 +284,7 @@ ALAPI ALint ALAPIENTRY alGetInteger(ALenum pname) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } @@ -321,14 +321,14 @@ ALAPI ALvoid ALAPIENTRY alGetBooleanv(ALenum pname,ALboolean *data) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } } else { // data is a NULL pointer - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); } ProcessContext(Context); @@ -362,14 +362,14 @@ ALAPI ALvoid ALAPIENTRY alGetDoublev(ALenum pname,ALdouble *data) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } } else { // data is a NULL pointer - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); } ProcessContext(Context); @@ -403,14 +403,14 @@ ALAPI ALvoid ALAPIENTRY alGetFloatv(ALenum pname,ALfloat *data) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } } else { // data is a NULL pointer - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); } ProcessContext(Context); @@ -458,14 +458,14 @@ ALAPI ALvoid ALAPIENTRY alGetIntegerv(ALenum pname,ALint *data) break; default: - alSetError(AL_INVALID_ENUM); + alSetError(Context, AL_INVALID_ENUM); break; } } else { // data is a NULL pointer - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); } ProcessContext(Context); @@ -523,7 +523,7 @@ ALAPI const ALchar* ALAPIENTRY alGetString(ALenum pname) default: value=NULL; - alSetError(AL_INVALID_ENUM); + alSetError(pContext, AL_INVALID_ENUM); break; } @@ -546,7 +546,7 @@ ALAPI ALvoid ALAPIENTRY alDopplerFactor(ALfloat value) updateSources = AL_TRUE; } else - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); // Force updating the sources for these parameters, since even head- // relative sources are affected @@ -577,7 +577,7 @@ ALAPI ALvoid ALAPIENTRY alDopplerVelocity(ALfloat value) updateSources = AL_TRUE; } else - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); if(updateSources) { @@ -606,7 +606,7 @@ ALAPI ALvoid ALAPIENTRY alSpeedOfSound(ALfloat flSpeedOfSound) updateSources = AL_TRUE; } else - alSetError(AL_INVALID_VALUE); + alSetError(pContext, AL_INVALID_VALUE); if(updateSources) { @@ -643,7 +643,7 @@ ALAPI ALvoid ALAPIENTRY alDistanceModel(ALenum value) break; default: - alSetError(AL_INVALID_VALUE); + alSetError(Context, AL_INVALID_VALUE); break; } |