mesa: remove redundant readbuffer check
authorBrian Paul <brianp@vmware.com>
Sat, 19 Sep 2009 23:26:14 +0000 (17:26 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 19 Sep 2009 23:26:14 +0000 (17:26 -0600)
src/mesa/drivers/common/meta.c

index be32ae6..e9b892e 100644 (file)
@@ -2459,11 +2459,6 @@ _mesa_meta_CopyConvolutionFilter2D(GLcontext *ctx, GLenum target,
 {
    GLfloat *buf;
 
-   if (!ctx->ReadBuffer->_ColorReadBuffer) {
-      /* no readbuffer - OK */
-      return;
-   }
-
    buf = (GLfloat *) _mesa_malloc(width * height * 4 * sizeof(GLfloat));
    if (!buf) {
       _mesa_error(ctx, GL_OUT_OF_MEMORY, "glCopyConvolutionFilter2D");