Mesa (master): mesa: remove FEATURE_GL test from updated_drawbuffers()

Ian Romanick idr at kemper.freedesktop.org
Tue Oct 16 22:01:37 UTC 2012


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

Author: Brian Paul <brianp at vmware.com>
Date:   Sat Sep 22 18:45:34 2012 -0600

mesa: remove FEATURE_GL test from updated_drawbuffers()

There's already a runtime test for full OpenGL.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/main/buffers.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index 216b6ee..cc268b6 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -353,7 +353,6 @@ updated_drawbuffers(struct gl_context *ctx)
 {
    FLUSH_VERTICES(ctx, _NEW_BUFFERS);
 
-#if FEATURE_GL
    if (ctx->API == API_OPENGL && !ctx->Extensions.ARB_ES2_compatibility) {
       struct gl_framebuffer *fb = ctx->DrawBuffer;
 
@@ -362,7 +361,6 @@ updated_drawbuffers(struct gl_context *ctx)
 	 fb->_Status = 0;
       }
    }
-#endif
 }
 
 




More information about the mesa-commit mailing list