From 18e31bb25222b8763f8c90eb8a07f6a72bdb0916 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 26 Jun 2017 14:05:46 +0200 Subject: mesa: add KHR_no_error support for gl*Samplers() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- src/mesa/main/samplerobj.c | 14 ++++++++++++++ src/mesa/main/samplerobj.h | 7 +++++++ 2 files changed, 21 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/main/samplerobj.c b/src/mesa/main/samplerobj.c index 7ac1743e2d3..d78528be2db 100644 --- a/src/mesa/main/samplerobj.c +++ b/src/mesa/main/samplerobj.c @@ -193,6 +193,13 @@ create_samplers_err(struct gl_context *ctx, GLsizei count, GLuint *samplers, create_samplers(ctx, count, samplers); } +void GLAPIENTRY +_mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers) +{ + GET_CURRENT_CONTEXT(ctx); + create_samplers(ctx, count, samplers); +} + void GLAPIENTRY _mesa_GenSamplers(GLsizei count, GLuint *samplers) { @@ -200,6 +207,13 @@ _mesa_GenSamplers(GLsizei count, GLuint *samplers) create_samplers_err(ctx, count, samplers, "glGenSamplers"); } +void GLAPIENTRY +_mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers) +{ + GET_CURRENT_CONTEXT(ctx); + create_samplers(ctx, count, samplers); +} + void GLAPIENTRY _mesa_CreateSamplers(GLsizei count, GLuint *samplers) { diff --git a/src/mesa/main/samplerobj.h b/src/mesa/main/samplerobj.h index 8e9539d8d8f..26b5dd6b016 100644 --- a/src/mesa/main/samplerobj.h +++ b/src/mesa/main/samplerobj.h @@ -95,8 +95,15 @@ extern void _mesa_bind_sampler(struct gl_context *ctx, GLuint unit, struct gl_sampler_object *sampObj); +void GLAPIENTRY +_mesa_GenSamplers_no_error(GLsizei count, GLuint *samplers); + void GLAPIENTRY _mesa_GenSamplers(GLsizei count, GLuint *samplers); + +void GLAPIENTRY +_mesa_CreateSamplers_no_error(GLsizei count, GLuint *samplers); + void GLAPIENTRY _mesa_CreateSamplers(GLsizei count, GLuint *samplers); void GLAPIENTRY -- cgit v1.2.3