From: Samuel Pitoiset Date: Wed, 19 Jul 2017 09:05:31 +0000 (+0200) Subject: mesa: add KHR_no_error support to glBindTexture() X-Git-Tag: upstream/18.1.0~7290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f1fab9533a84d35e7121ecc551b206af87f0f85;p=platform%2Fupstream%2Fmesa.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 fc863be..95c448d 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 04f320c..bf48d75 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -1703,6 +1703,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) { GET_CURRENT_CONTEXT(ctx); diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h index 9b9e418..4971a20 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 );