[Mesa-dev] [PATCH 2/2] meta: Handle bitmaps with alpha test enabled.
Francisco Jerez
currojerez at riseup.net
Mon Nov 1 16:34:02 PDT 2010
Brian Paul <brianp at vmware.com> writes:
> Unless a fragment shader is active (very rare), all the fragments
> emitted for a bitmap should have the same RGBA color. So the only two
> possible outcomes of applying the alpha test to glBitmap is either the
> bitmap is drawn normally (as if alpha test is disabled) or nothing is
> drawn at all. I think we could test for this and either no-op the
> glBitmap or draw the bitmap with the current code as-is.
>
> What do you think?
>
Yeah, that makes sense, fixed patch follows. Thank you for the review.
> -Brian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-meta-Handle-bitmaps-with-alpha-test-enabled.patch
Type: text/x-diff
Size: 4532 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101102/0052c66a/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20101102/0052c66a/attachment.pgp>
More information about the mesa-dev
mailing list