diff options
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | src/mesa/main/texobj.c | 8 | ||||
-rw-r--r-- | src/mesa/main/texobj.h | 3 |
2 files changed, 11 insertions, 0 deletions
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 @@ -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 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 ); |