[Mesa-dev] [PATCH 01/13] mesa: remove _mesa from static framebuffer object function

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


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

diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c
index d486d01..ad49b0e 100644
--- a/src/mesa/main/fbobject.c
+++ b/src/mesa/main/fbobject.c
@@ -278,22 +278,22 @@ get_attachment(struct gl_context *ctx, struct gl_framebuffer *fb,
       return NULL;
    }
 }
 
 
 /**
  * As above, but only used for getting attachments of the default /
  * window-system framebuffer (not user-created framebuffer objects).
  */
 static struct gl_renderbuffer_attachment *
-_mesa_get_fb0_attachment(struct gl_context *ctx, struct gl_framebuffer *fb,
-                         GLenum attachment)
+get_fb0_attachment(struct gl_context *ctx, struct gl_framebuffer *fb,
+                   GLenum attachment)
 {
    assert(_mesa_is_winsys_fbo(fb));
 
    if (_mesa_is_gles3(ctx)) {
       assert(attachment == GL_BACK ||
              attachment == GL_DEPTH ||
              attachment == GL_STENCIL);
       switch (attachment) {
       case GL_BACK:
          /* Since there is no stereo rendering in ES 3.0, only return the
@@ -3739,21 +3739,21 @@ _mesa_get_framebuffer_attachment_parameter(struct gl_context *ctx,
        */
       if (pname == GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME) {
          _mesa_error(ctx, GL_INVALID_ENUM,
                      "%s(requesting GL_FRAMEBUFFER_ATTACHMENT_OBJECT_NAME "
                      "when GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is "
                      "GL_FRAMEBUFFER_DEFAULT is not allowed)", caller);
          return;
       }
 
       /* the default / window-system FBO */
-      att = _mesa_get_fb0_attachment(ctx, buffer, attachment);
+      att = get_fb0_attachment(ctx, buffer, attachment);
    }
    else {
       /* user-created framebuffer FBO */
       att = get_attachment(ctx, buffer, attachment, &is_color_attachment);
    }
 
    if (att == NULL) {
       /*
        * From OpenGL 4.5 spec, section 9.2.3 "Framebuffer Object Queries":
        *
-- 
2.9.3



More information about the mesa-dev mailing list