From 4e8aa4b9a205a21f1f87e29557e796d8664fa131 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Mon, 8 May 2017 11:52:45 +1000 Subject: mesa: add KHR_no_error support for FramebufferTexture MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit V3: use the frame_buffer_texture() helper Reviewed-by: Nicolai Hähnle --- src/mesa/main/fbobject.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mesa/main/fbobject.c') diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 2c6c599731b..82fec792bbd 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -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) -- cgit v1.2.3