[Mesa-dev] [PATCH 3/3] mesa/main: Check for 0 size draws after validation.

Paul Berry stereotype441 at gmail.com
Tue Aug 27 15:20:19 PDT 2013


On 18 July 2013 10:30, Matt Turner <mattst88 at gmail.com> wrote:

> On Sat, May 25, 2013 at 4:33 AM, Fabian Bieler <fabianbieler at fastmail.fm>
> wrote:
> > When validating draw parameters move check for 0 draw count last
> > (drawing with count 0 is not an error), so that other parameters (e.g.:
> the
> > primitive type) are validated and the correct errors (if applicable) are
> > generated.
> >
> > >From the OpenGL 3.3 spec page 33 (page 48 of the PDF):
> > "[Regarding DrawArraysOneInstance, in terms of which other draw
> operations
> > are defined:]
> > If count is negative, an INVALID_VALUE error is generated."
> >
> > This patch also changes the bahavior of MultiDrawElements to perform the
> draw
> > operation if some primitive's index counts are zero.
> >
> > Signed-off-by: Fabian Bieler <fabianbieler at fastmail.fm>
> > ---
>
> Was this committed? I don't see it.
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
>

I've just committed it.  Thanks for the reminder, Matt!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130827/0290cc68/attachment.html>


More information about the mesa-dev mailing list