<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - glGetFramebufferAttachmentParameteriv failing if certain FB attributes are zero"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90162#c5">Comment # 5</a>
on <a class="bz_bug_link
bz_status_ASSIGNED "
title="ASSIGNED - glGetFramebufferAttachmentParameteriv failing if certain FB attributes are zero"
href="https://bugs.freedesktop.org/show_bug.cgi?id=90162">bug 90162</a>
from <span class="vcard"><a class="email" href="mailto:lemody@gmail.com" title="Tapani Pälli <lemody@gmail.com>"> <span class="fn">Tapani Pälli</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>