[Mesa-dev] [PATCH 08/13] mesa: add no error version of framebuffer_texture_with_dims()

Timothy Arceri tarceri at itsqueeze.com
Mon May 8 06:35:32 UTC 2017


---
 src/mesa/main/fbobject.c | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index 85744e3..932d5fd 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -3297,20 +3297,43 @@ _mesa_framebuffer_texture(struct gl_context *ctx, struct gl_framebuffer *fb,
       }
    }
 
    invalidate_framebuffer(fb);
 
    mtx_unlock(&fb->Mutex);
 }
 
 
 static void
+framebuffer_texture_with_dims_no_error(int dims, GLenum target,
+                                       GLenum attachment, GLenum textarget,
+                                       GLuint texture, GLint level,
+                                       GLint layer, const char *caller)
+{
+   GET_CURRENT_CONTEXT(ctx);
+
+   /* Get the framebuffer object */
+   struct gl_framebuffer *fb = get_framebuffer_target(ctx, target);
+
+   /* Get the texture object */
+   struct gl_texture_object *texObj =
+      get_texture_for_framebuffer(ctx, texture);
+
+   struct gl_renderbuffer_attachment *att =
+      get_attachment(ctx, fb, attachment, NULL);
+
+   _mesa_framebuffer_texture(ctx, fb, attachment, att, texObj, textarget,
+                             level, layer, GL_FALSE);
+}
+
+
+static void
 framebuffer_texture_with_dims(int dims, GLenum target,
                               GLenum attachment, GLenum textarget,
                               GLuint texture, GLint level, GLint layer,
                               const char *caller)
 {
    GET_CURRENT_CONTEXT(ctx);
    struct gl_framebuffer *fb;
    struct gl_texture_object *texObj;
 
    /* Get the framebuffer object */
-- 
2.9.3



More information about the mesa-dev mailing list