From 4e8aa4b9a205a21f1f87e29557e796d8664fa131 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 8 May 2017 11:52:45 +1000 Subject: [PATCH] mesa: add KHR_no_error support for FramebufferTexture MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit V3: use the frame_buffer_texture() helper Reviewed-by: Nicolai Hähnle --- src/mapi/glapi/gen/GL3x.xml | 2 +- src/mesa/main/fbobject.c | 9 +++++++++ src/mesa/main/fbobject.h | 3 +++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/GL3x.xml b/src/mapi/glapi/gen/GL3x.xml index d2c768d..10c157e 100644 --- a/src/mapi/glapi/gen/GL3x.xml +++ b/src/mapi/glapi/gen/GL3x.xml @@ -607,7 +607,7 @@ - + diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 2c6c599..82fec79 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -3555,6 +3555,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) { diff --git a/src/mesa/main/fbobject.h b/src/mesa/main/fbobject.h index a2f9264..1d064f8 100644 --- a/src/mesa/main/fbobject.h +++ b/src/mesa/main/fbobject.h @@ -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); -- 2.7.4