mesa: add KHR_no_error support to glBindTexture()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 19 Jul 2017 09:05:31 +0000 (11:05 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 31 Jul 2017 11:53:39 +0000 (13:53 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/gl_API.xml
src/mesa/main/texobj.c
src/mesa/main/texobj.h

index fc863be87af0b9938a13e2f038a3cdbe8f913d86..95c448d2364bad08a62be0552627a19ab767dcc7 100644 (file)
         <glx sop="143" handcode="client" always_array="true"/>
     </function>
 
-    <function name="BindTexture" es1="1.0" es2="2.0">
+    <function name="BindTexture" es1="1.0" es2="2.0" no_error="true">
         <param name="target" type="GLenum"/>
         <param name="texture" type="GLuint"/>
         <glx rop="4117"/>
index 04f320cbcdd10b7011846a4f3edfc14fd242a14f..bf48d7595daabc9b2be6e28dc55a3ad61aff62d9 100644 (file)
@@ -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)
 {
index 9b9e4185d7b69cc3adc49021e5fcea302571411a..4971a2075d80535310018dc7731a1844d6759cce 100644 (file)
@@ -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 );