mesa: add KHR_no_error support to glBindSampler()
[mesa.git] / src / mesa / main / samplerobj.c
index 260cff6450aba7ff62e428e50d80745dceccb0dc..59ec813013e1258f492adf50374a9244163ab169 100644 (file)
@@ -318,6 +318,13 @@ bind_sampler(struct gl_context *ctx, GLuint unit, GLuint sampler, bool no_error)
    _mesa_bind_sampler(ctx, unit, sampObj);
 }
 
+void GLAPIENTRY
+_mesa_BindSampler_no_error(GLuint unit, GLuint sampler)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   bind_sampler(ctx, unit, sampler, true);
+}
+
 void GLAPIENTRY
 _mesa_BindSampler(GLuint unit, GLuint sampler)
 {