mesa: restore _mesa_snprintf() - it's needed for Windows
[mesa.git] / src / mesa / shader / shader_api.c
index 8bd780b0b0f92bd468f916238df8b8fd0d32ac90..129a973cf1a5c8c366153e91ff5c7d87b5ec8502 100644 (file)
@@ -2076,7 +2076,7 @@ validate_samplers(GLcontext *ctx, const struct gl_program *prog, char *errMsg)
       unit = prog->SamplerUnits[sampler];
       target = prog->SamplerTargets[sampler];
       if (targetUsed[unit] != -1 && targetUsed[unit] != target) {
-         snprintf(errMsg, 100,
+         _mesa_snprintf(errMsg, 100,
                  "Texture unit %d is accessed both as %s and %s",
                  unit, targetName[targetUsed[unit]], targetName[target]);
          return GL_FALSE;