From: Samuel Pitoiset Date: Wed, 19 Jul 2017 09:05:31 +0000 (+0200) Subject: mesa: add KHR_no_error support to glBindTexture() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f1fab9533a84d35e7121ecc551b206af87f0f85;p=mesa.git mesa: add KHR_no_error support to glBindTexture() Signed-off-by: Samuel Pitoiset Reviewed-by: Timothy Arceri --- diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index fc863be87af..95c448d2364 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -3333,7 +3333,7 @@ - + diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 04f320cbcdd..bf48d7595da 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1702,6 +1702,14 @@ bind_texture(struct gl_context *ctx, GLenum target, GLuint texName, } +void GLAPIENTRY +_mesa_BindTexture_no_error(GLenum target, GLuint texName) +{ + GET_CURRENT_CONTEXT(ctx); + bind_texture(ctx, target, texName, true); +} + + void GLAPIENTRY _mesa_BindTexture(GLenum target, GLuint texName) { diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index 9b9e4185d7b..4971a2075d8 100644 --- a/src/mesa/main/texobj.h +++ b/src/mesa/main/texobj.h @@ -193,6 +193,9 @@ extern void GLAPIENTRY _mesa_DeleteTextures( GLsizei n, const GLuint *textures ); +void GLAPIENTRY +_mesa_BindTexture_no_error(GLenum target, GLuint texture); + extern void GLAPIENTRY _mesa_BindTexture( GLenum target, GLuint texture );