From 006918c0db77e945ac56b15bc64eba502b86d56c Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Sat, 1 Dec 2012 10:52:42 -0700 Subject: [PATCH] mesa: remove warning message in _mesa_reference_renderbuffer_() We were warning when there was no current context and we're about to delete a renderbuffer, but that happens fairly often and isn't really a problem. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=57754 Note: This is a candidate for the stable branches. Tested-by: Ian Romanick --- src/mesa/main/renderbuffer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c index 2f284432994..b4261622672 100644 --- a/src/mesa/main/renderbuffer.c +++ b/src/mesa/main/renderbuffer.c @@ -160,10 +160,7 @@ _mesa_reference_renderbuffer_(struct gl_renderbuffer **ptr, if (deleteFlag) { GET_CURRENT_CONTEXT(ctx); - if (ctx) - oldRb->Delete(ctx, oldRb); - else - _mesa_problem(NULL, "Unable to delete renderbuffer, no context"); + oldRb->Delete(ctx, oldRb); } *ptr = NULL; -- 2.30.2