On Monday, June 08, 2015 02:53:26 PM Tapani Pälli wrote: > v2: && -> ||, we enable on gles3 or if ARB_texture_rg is enabled > > Signed-off-by: Tapani Pälli <[email protected]> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=90748 > --- > src/mesa/main/glformats.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c > index edc4918..f39a2c7 100644 > --- a/src/mesa/main/glformats.c > +++ b/src/mesa/main/glformats.c > @@ -1678,6 +1678,10 @@ _mesa_error_check_format_and_type(const struct > gl_context *ctx, > case GL_LUMINANCE: > case GL_ALPHA: > return GL_NO_ERROR; > + case GL_RG: > + case GL_RED: > + if (_mesa_is_gles3(ctx) || ctx->Extensions.ARB_texture_rg) > + return GL_NO_ERROR; > default: > return GL_INVALID_OPERATION; > } >
Reviewed-by: Kenneth Graunke <[email protected]>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-dev
