[Mesa-dev] [PATCH 3/6] mesa: remove FEATURE_GL test from updated_drawbuffers()

Brian Paul brian.e.paul at gmail.com
Sat Sep 22 17:45:34 PDT 2012


From: Brian Paul <brianp at vmware.com>

There's already a runtime test for full OpenGL.
---
 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
 }
 
 
-- 
1.7.4.1



More information about the mesa-dev mailing list