gl_shader_stage stage;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
if (!shProg->_LinkedShaders[stage]) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
gl_shader_stage stage;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
if (!shProg->_LinkedShaders[stage]) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
resource_type = _mesa_shader_stage_to_subroutine(stage);
res = _mesa_program_resource_find_name(shProg, resource_type, name);
if (!res) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return -1;
}
int count, i, j;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
sh = shProg->_LinkedShaders[stage];
if (!sh) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
}
break;
default:
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
}
gl_shader_stage stage;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
if (!shProg->_LinkedShaders[stage]) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
gl_shader_stage stage;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
if (!shProg->_LinkedShaders[stage]) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
resource_type = _mesa_shader_stage_to_subroutine(stage);
int i;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
shProg = ctx->_Shader->CurrentProgram[stage];
if (!shProg) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
sh = shProg->_LinkedShaders[stage];
if (!sh) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (count != sh->NumSubroutineUniformRemapTable) {
- _mesa_error(ctx, GL_INVALID_VALUE, api_name);
+ _mesa_error(ctx, GL_INVALID_VALUE, "%s", api_name);
return;
}
for (j = i; j < i + uni_count; j++) {
struct gl_subroutine_function *subfn;
if (indices[j] >= sh->NumSubroutineFunctions) {
- _mesa_error(ctx, GL_INVALID_VALUE, api_name);
+ _mesa_error(ctx, GL_INVALID_VALUE, "%s", api_name);
return;
}
break;
}
if (k == subfn->num_compat_types) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
}
gl_shader_stage stage;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
shProg = ctx->_Shader->CurrentProgram[stage];
if (!shProg) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
sh = shProg->_LinkedShaders[stage];
if (!sh) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (location >= sh->NumSubroutineUniformRemapTable) {
- _mesa_error(ctx, GL_INVALID_VALUE, api_name);
+ _mesa_error(ctx, GL_INVALID_VALUE, "%s", api_name);
return;
}
gl_shader_stage stage;
if (!_mesa_has_shader_subroutine(ctx)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
if (!_mesa_validate_shader_target(ctx, shadertype)) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
stage = _mesa_shader_enum_to_shader_stage(shadertype);
sh = shProg->_LinkedShaders[stage];
if (!sh) {
- _mesa_error(ctx, GL_INVALID_OPERATION, api_name);
+ _mesa_error(ctx, GL_INVALID_OPERATION, "%s", api_name);
return;
}
break;
}
default:
- _mesa_error(ctx, GL_INVALID_ENUM, api_name);
+ _mesa_error(ctx, GL_INVALID_ENUM, "%s", api_name);
values[0] = -1;
break;
}