[Mesa-dev] [PATCH 02/20] mesa/es: Validate blend function enums in Mesa code rather than the ES wrapper
Eric Anholt
eric at anholt.net
Fri Aug 24 15:07:03 PDT 2012
Ian Romanick <idr at freedesktop.org> writes:
> case GL_SRC_ALPHA_SATURATE:
> case GL_SRC1_COLOR:
> case GL_SRC1_ALPHA:
> case GL_ONE_MINUS_SRC1_COLOR:
> case GL_ONE_MINUS_SRC1_ALPHA:
> - return ctx->Extensions.ARB_blend_func_extended;
> + return _mesa_is_desktop_gl(ctx)
> + && ctx->Extensions.ARB_blend_func_extended;
> default:
> return GL_FALSE;
SRC_ALPHA_SATURATE is legal as a dst in gles3 it looks like.
-------------- 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/20120824/6791a999/attachment.pgp>
More information about the mesa-dev
mailing list