mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-14 12:18:07 +02:00
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 006918c0db)
This commit is contained in:
parent
5fdc42fb87
commit
d4fc90c129
1 changed files with 1 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue