From af6a48011776eeb0c08f3a9a845736f298a6d34b Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sun, 26 Mar 2006 05:15:21 +0000 Subject: remove some unneeded code --- src/mesa/main/fbobject.c | 4 ---- src/mesa/main/texrender.c | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 8c5bde6edd..ec690bdbf7 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -1068,10 +1068,6 @@ _mesa_BindFramebufferEXT(GLenum target, GLuint framebuffer) if (ctx->Driver.BindFramebuffer) { ctx->Driver.BindFramebuffer(ctx, target, newFb); } - - if (ctx->Driver.BindFramebuffer) { - ctx->Driver.BindFramebuffer(ctx, target, newFb); - } } diff --git a/src/mesa/main/texrender.c b/src/mesa/main/texrender.c index c79f47182c..85565bfb1d 100644 --- a/src/mesa/main/texrender.c +++ b/src/mesa/main/texrender.c @@ -250,14 +250,4 @@ _mesa_finish_render_texture(GLcontext *ctx, /* The renderbuffer texture wrapper will get deleted by the * normal mechanism for deleting renderbuffers. */ -#if 0 - if (att->Renderbuffer) { - att->Renderbuffer->RefCount--; - } - if (att->Renderbuffer->RefCount <= 0) { - _mesa_debug(ctx, "%s refcount == 0!\n", __FUNCTION__); - } -#endif } - - -- cgit v1.2.3