[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Error codes in drawArrays / drawElements



----- Original Message -----
> On Wed, Jul 14, 2010 at 12:40 PM, Benoit Jacob <bjacob@mozilla.com>
> wrote:
> > ----- Original Message -----
> >> On Wed, Jun 2, 2010 at 3:22 PM, Benoit Jacob <bjacob@mozilla.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > These Khronos tests suggests that in certain circumstances
> >> > drawArray
> >> > / drawElements give INVALID_OPERATION, as opposed to
> >> > INVALID_VALUE:
> >> >
> >> > https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/fast/draw-arrays-out-of-bounds.html
> >> > https://cvs.khronos.org/svn/repos/registry/trunk/public/webgl/sdk/tests/fast/draw-elements-out-of-bounds.html
> >> >
> >> > But neither the WebGL spec, nor the OpenGL ES documentation, say
> >> > that these functions can give INVALID_OPERATION.
> >>
> >> Section 4.1 of the WebGL indicates, but does not currently specify,
> >> this behavior.
> >>
> >> We agreed at the F2F that generating an INVALID_OPERATION error
> >> will
> >> be the specified behavior. The spec still needs to catch up but the
> >> tests verify the intended behavior.
> >
> > The spec still needs to be updated: section 5.13.11 still only
> > mentions a few of the various cases where we should specify GL
> > errors.
> >
> > Would you accept a patch doing these changes in the spec?
> 
> I am sure we would -- could you propose one?

Actually, I sent this too fast and missed section 6.2 where this stuff is explained (and is easy to find).

I can only see one thing that seems to be documented neither in the GL ES docs, nor in the WebGL spec, it is that glDrawElements should generate INVALID_OPERATION if no element array buffer is bound. Do we want to document that in the WebGL spec?

Also, do we want to say somewhere (perhaps once and for all) in the WebGL spec that WebGL functions should generate INVALID_OPERATION if their normal execution would lead to an integer overflow?

Thanks,
Benoit

> 
> Thanks,
> 
> -Ken
> 
> > Benoit
> >
> >>
> >> -Ken
> >>
> >> > What's happening?
> >> >
> >> > Benoit
> >> > -----------------------------------------------------------
> >> > You are currently subscribed to public_webgl@khronos.org.
> >> > To unsubscribe, send an email to majordomo@khronos.org with
> >> > the following command in the body of your email:
> >> >
> >> >
> >
-----------------------------------------------------------
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: