[Mesa-dev] [PATCH] st/mesa: Remove tautological check

francians at gmail.com francians at gmail.com
Wed Jun 15 19:25:45 UTC 2016


From: Francesco Ansanelli <francians at gmail.com>

---
 src/mesa/state_tracker/st_cb_fbo.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index a53b95a..ba9955c 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -705,10 +705,7 @@ st_DrawBuffers(struct gl_context *ctx, GLsizei count, const GLenum *buffers)
    /* add the renderbuffers on demand */
    for (i = 0; i < fb->_NumColorDrawBuffers; i++) {
       gl_buffer_index idx = fb->_ColorDrawBufferIndexes[i];
-
-      if (idx >= 0) {
-         st_manager_add_color_renderbuffer(st, fb, idx);
-      }
+      st_manager_add_color_renderbuffer(st, fb, idx);
    }
 }
 
-- 
1.7.9.5



More information about the mesa-dev mailing list