[Mesa-dev] [Bug 90162] glGetFramebufferAttachmentParameteriv failing if certain FB attributes are zero

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue May 12 23:31:48 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=90162

--- Comment #5 from Tapani Pälli <lemody at gmail.com> ---
These errors are according to the spec and happen because of following reason.

---- 8< ----
    OpenGL 4.0 Compatibility, page 449:

    If the value of FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE is NONE, no
    framebuffer is bound to target. In this case querying pname FRAMEBUFFER_-
    ATTACHMENT_OBJECT_NAME will return zero, and all other queries will
generate
    an INVALID_OPERATION error.
---- 8< ----

In the application before all other queries, you'll need to query for
attachment object type:

    glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT,
        GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &type);

If type is GL_NONE, then other queries should not be made. Please resolve as
NOTABUG if you agree with this.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150513/6cd0b431/attachment.html>


More information about the mesa-dev mailing list