summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2012-12-01 10:52:42 -0700
committerAndreas Boll <andreas.boll.dev@gmail.com>2013-02-13 18:46:40 +0100
commitd4fc90c129389de2b5ac6e2ac1561cca7e1f1185 (patch)
tree2f3e548cdd69c8553a3988ad250f36a8d4c465e2
parent5fdc42fb877644ae4c3343c9391f959bc7d71515 (diff)
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 <ian.d.romanick@intel.com> (cherry picked from commit 006918c0db77e945ac56b15bc64eba502b86d56c)
-rw-r--r--src/mesa/main/renderbuffer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mesa/main/renderbuffer.c b/src/mesa/main/renderbuffer.c
index 2f28443299..b426162267 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;