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

--- Comment #1 from Brian Paul <bri...@vmware.com> 2012-02-15 14:18:47 PST ---
I think this is actually a bug in the piglit test.

The glTexSubImage call in question can generate either GL_INVALID_ENUM or 
GL_INVALID_OPERATION depending on what order glTexSubImage() does its parameter 
error
checking:

>From the spec:
    INVALID_ENUM is generated by DrawPixels, TexImage* and
    SubTexImage* if <format> is one of the integer component formats
    described in table 3.6 and <type> is FLOAT.
and:
    INVALID_OPERATION is generated by TexImage* and SubTexImage* if
    the texture internalformat is an integer format as described in
    table 3.16 and <format> is not one of the integer component
    formats described in table 3.6, or if the internalformat is not an
    integer format and <format> is an integer format.

I can fix the piglit test, but after reviewing Mesa it looks like we're missing 
the later error check for glTexSubImage.  I'll work on that too...

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to