----- Original Message ----- > From: Dave Airlie <airl...@redhat.com> > > Mesa shouldn't call into the drivers if there are no renderbuffers > bound to the attachments for the buffers to be cleared. > > Fixes a number of the clearbuffer-* tests on softpipe. > > Signed-off-by: Dave Airlie <airl...@redhat.com> > --- > src/mesa/main/clear.c | 15 +++++++++++---- > 1 files changed, 11 insertions(+), 4 deletions(-) > > diff --git a/src/mesa/main/clear.c b/src/mesa/main/clear.c > index bd5c012..a340f99 100644 > --- a/src/mesa/main/clear.c > +++ b/src/mesa/main/clear.c [...] > @@ -592,6 +592,8 @@ _mesa_ClearBufferfi(GLenum buffer, GLint > drawbuffer, > GLfloat depth, GLint stencil) > { > GET_CURRENT_CONTEXT(ctx); > + int mask = 0; > +
mask should be unsigned or GLbitfield. Otherwise looks good to me. Jose _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev