Module: Mesa
Branch: master
Commit: ed4076b5b8c5d3c024e291f42a8730b4f71226c9
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=ed4076b5b8c5d3c024e291f42a8730b4f71226c9

Author: Brian Paul <[email protected]>
Date:   Sat Sep 19 17:26:14 2009 -0600

mesa: remove redundant readbuffer check

---

 src/mesa/drivers/common/meta.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c
index be32ae6..e9b892e 100644
--- a/src/mesa/drivers/common/meta.c
+++ b/src/mesa/drivers/common/meta.c
@@ -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");

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to