aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-07-21 11:05:39 +0200
committerSamuel Pitoiset <[email protected]>2017-07-31 13:53:39 +0200
commitd952485d7c4b500753b825053ea28c0fe5bd1c3a (patch)
tree72501eab3cf9ec8657b9dc5fbe0f98a7358aabf9 /src/mesa
parent90f691b5be6ea8ac2d0d06e422a31519305059a0 (diff)
mesa: add KHR_no_error support to glBindTextures()
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texobj.c8
-rw-r--r--src/mesa/main/texobj.h4
2 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index aa3e4190f52..b698569509f 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1873,6 +1873,14 @@ bind_textures(struct gl_context *ctx, GLuint first, GLsizei count,
void GLAPIENTRY
+_mesa_BindTextures_no_error(GLuint first, GLsizei count, const GLuint *textures)
+{
+ GET_CURRENT_CONTEXT(ctx);
+ bind_textures(ctx, first, count, textures, true);
+}
+
+
+void GLAPIENTRY
_mesa_BindTextures(GLuint first, GLsizei count, const GLuint *textures)
{
GET_CURRENT_CONTEXT(ctx);
diff --git a/src/mesa/main/texobj.h b/src/mesa/main/texobj.h
index 4971a2075d8..6443a567051 100644
--- a/src/mesa/main/texobj.h
+++ b/src/mesa/main/texobj.h
@@ -205,6 +205,10 @@ _mesa_BindTextureUnit_no_error(GLuint unit, GLuint texture);
extern void GLAPIENTRY
_mesa_BindTextureUnit(GLuint unit, GLuint texture);
+void GLAPIENTRY
+_mesa_BindTextures_no_error(GLuint first, GLsizei count,
+ const GLuint *textures);
+
extern void GLAPIENTRY
_mesa_BindTextures( GLuint first, GLsizei count, const GLuint *textures );