[Mesa-dev] [PATCH] mesa: Allow glReadBuffer(GL_NONE) for winsys framebuffers.
Eric Anholt
eric at anholt.net
Wed Dec 19 15:58:32 PST 2012
Paul Berry <stereotype441 at gmail.com> writes:
> Previously, Mesa code assumed that glReadBuffer(GL_NONE) was only
> valid for user-created framebuffer objects. However, the spec is
> quite clear that is should also be valid for the default framebuffer.
> From section 18.2.1 ("Obtaining Pixels from the Framebuffer") of the
> GL 4.3 spec:
>
> "When READ_FRAMEBUFFER_BINDING is zero, i.e. the default
> framebuffer, src must be one of the values listed in table 17.4,
> including NONE."
>
> Similar language exists in the GLES 3.0 spec, and in desktop GL all
> the way back to ARB_framebuffer_object.
Even farther, back to EXT_framebuffer_object, too!
Reviewed-by: Eric Anholt <eric at anholt.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121219/2419dbd1/attachment-0001.pgp>
More information about the mesa-dev
mailing list