<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [IVB/HSW] ogl-samples: gl-330-texture-rect assertion fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=76496#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - [IVB/HSW] ogl-samples: gl-330-texture-rect assertion fails"
href="https://bugs.freedesktop.org/show_bug.cgi?id=76496">bug 76496</a>
from <span class="vcard"><a class="email" href="mailto:itoral@igalia.com" title="Iago Toral <itoral@igalia.com>"> <span class="fn">Iago Toral</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=76496#c1">comment #1</a>)
<span class="quote">> Apparently, the test calls glTexParameteri with a pname of
> GL_TEXTURE_MAX_LEVEL and param value of 0.
>
> I don't see any text offhand which state you /can't/ do that, but given that
> rectangle textures don't support mipmapping, it seems weird...</span >
>From <a href="http://www.opengl.org/wiki/Rectangle_Texture">http://www.opengl.org/wiki/Rectangle_Texture</a>:
"Rectangle textures contain exactly one image; they cannot have mipmaps.
Therefore, any texture parameters that depend on LODs are irrelevant when used
with rectangle textures; attempting to set these parameters to any value other
than 0 will result in an error."
Based on this I understand that that setting a value of 0 for
GL_TEXTURE_MAX_LEVEL should not produce an error in this case.
I sent a patch to the mailing list:
<a href="http://lists.freedesktop.org/archives/mesa-dev/2014-March/056844.html">http://lists.freedesktop.org/archives/mesa-dev/2014-March/056844.html</a></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>