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

Re: [Public WebGL] Re: double-buffering and back buffer preservation

----- Original Message -----
> On Fri, Nov 19, 2010 at 03:38, Vladimir Vukicevic
> <vladimir@mozilla.com> wrote:
> > - A context attribute will be added, provisionally called
> > preserveDrawbuffers, which will default to false.
> > - When a present occurs:
> >  - if preserveDrawbuffers is FALSE: the color/stencil/depth buffers
> >  are set to the default values.
> What are "default values" ?

The initial values as specified by GL -- 0,0,0,0 for color, 0 for stencil, and 1.0f for depth.

> Doesn't this block usage of EXT_discard_framebuffer as it would
> require an additional/unnecessary "clear" ?

No, because that clear can happen lazily if no user clear happens before the next draw call.

> >  - if preserveDrawbuffers is TRUE: the color/stencil/depth are
> >  untouched.
> Do I understand correctly that the context attribute would be writable
> at any time?
> It introduces a precedent as all other attributes are creation-time
> only, not that I object strongly to that but looks a bit out of place
> imho.

It's no different than the other attributes; it's requestable at creation time only.

    - Vlad

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: