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

Re: [Public WebGL] ReadPixels



On Fri, Mar 19, 2010 at 11:05 AM, Chris Marrin <cmarrin@apple.com> wrote:
>
> On Mar 18, 2010, at 7:30 PM, Gregg Tavares wrote:
>
>> A couple of readPixels issues
>>
>> 1)  I noticed today that apparently some drivers require a glFlush before calling glReadPixels.
>>
>> That's seem like a bug in the driver. The question though is do we want to do or say anything in the spec about this? Like a recommendation that an implementation call glFlush (or glFinish?) before calling glReadPixels just so we don't get inconsistent results across systems?
>
> I think the best approach would be to add some normative test that says something to the effect of "the data returned from readPixels shall be up-to-date as of the most recently sent drawing command. Any unprocessed drawing commands must be completed and their results presented to the current drawing buffers before readPixels accesses the drawing buffer".
>
> Or something like that.

I've added this text to the readPixels spec.

-Ken

> -----
> ~Chris
> cmarrin@apple.com
>
>
>
>
> -----------------------------------------------------------
> You are currently subscribe 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 subscribe to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: