mesa: add KHR_no_error support for FramebufferTexture
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 8 May 2017 01:52:45 +0000 (11:52 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 17 May 2017 00:12:03 +0000 (10:12 +1000)
V3: use the frame_buffer_texture() helper

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/mapi/glapi/gen/GL3x.xml
src/mesa/main/fbobject.c
src/mesa/main/fbobject.h

index d2c768dd6fee64172241a787205be9e6f2b1f9b7..10c157e5f85dae5b9e7bdca31dac977d89404a9b 100644 (file)
     <param name="params" type="GLint64 *"/>
   </function>
 
-  <function name="FramebufferTexture" es2="3.2">
+  <function name="FramebufferTexture" es2="3.2" no_error="true">
     <param name="target" type="GLenum"/>
     <param name="attachment" type="GLenum"/>
     <param name="texture" type="GLuint"/>
index 2c6c599731b91403cf26f7464d7b3706ad7c4033..82fec792bbd719b7cb4e7358dc6d7ae66c1d38cc 100644 (file)
@@ -3554,6 +3554,15 @@ _mesa_NamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment,
 }
 
 
+void GLAPIENTRY
+_mesa_FramebufferTexture_no_error(GLenum target, GLenum attachment,
+                                  GLuint texture, GLint level)
+{
+   frame_buffer_texture(0, target, attachment, texture, level, 0,
+                        "glFramebufferTexture", false, true, true);
+}
+
+
 void GLAPIENTRY
 _mesa_FramebufferTexture(GLenum target, GLenum attachment,
                          GLuint texture, GLint level)
index a2f9264f8ea1d5fc79a0171a0752b5a325e9dd7d..1d064f8ee0a7dcc0c6997dc533533caceb9a0e42 100644 (file)
@@ -258,6 +258,9 @@ _mesa_NamedFramebufferTextureLayer(GLuint framebuffer, GLenum attachment,
                                    GLuint texture, GLint level, GLint layer);
 
 extern void GLAPIENTRY
+_mesa_FramebufferTexture_no_error(GLenum target, GLenum attachment,
+                                  GLuint texture, GLint level);
+extern void GLAPIENTRY
 _mesa_FramebufferTexture(GLenum target, GLenum attachment,
                          GLuint texture, GLint level);