Fix ordering of alGetPointervSOFT

This commit is contained in:
Chris Robinson
2018-01-24 18:30:32 -08:00
parent 2ded5547ba
commit 1d86aea61c
+29 -29
View File
@@ -427,35 +427,6 @@ AL_API void* AL_APIENTRY alGetPointerSOFT(ALenum pname)
return value;
}
AL_API void AL_APIENTRY alGetPointervSOFT(ALenum pname, void **values)
{
ALCcontext *context;
if(values)
{
switch(pname)
{
case AL_EVENT_CALLBACK_FUNCTION_SOFT:
case AL_EVENT_CALLBACK_USER_PARAM_SOFT:
values[0] = alGetPointerSOFT(pname);
return;
}
}
context = GetContextRef();
if(!context) return;
if(!values)
alSetError(context, AL_INVALID_VALUE, 0, "NULL pointer");
switch(pname)
{
default:
alSetError(context, AL_INVALID_VALUE, 0, "Invalid pointer-vector property");
}
ALCcontext_DecRef(context);
}
AL_API ALvoid AL_APIENTRY alGetBooleanv(ALenum pname, ALboolean *values)
{
ALCcontext *context;
@@ -631,6 +602,35 @@ AL_API void AL_APIENTRY alGetInteger64vSOFT(ALenum pname, ALint64SOFT *values)
ALCcontext_DecRef(context);
}
AL_API void AL_APIENTRY alGetPointervSOFT(ALenum pname, void **values)
{
ALCcontext *context;
if(values)
{
switch(pname)
{
case AL_EVENT_CALLBACK_FUNCTION_SOFT:
case AL_EVENT_CALLBACK_USER_PARAM_SOFT:
values[0] = alGetPointerSOFT(pname);
return;
}
}
context = GetContextRef();
if(!context) return;
if(!values)
alSetError(context, AL_INVALID_VALUE, 0, "NULL pointer");
switch(pname)
{
default:
alSetError(context, AL_INVALID_VALUE, 0, "Invalid pointer-vector property");
}
ALCcontext_DecRef(context);
}
AL_API const ALchar* AL_APIENTRY alGetString(ALenum pname)
{
const ALchar *value = NULL;