mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-10 03:08:56 +00:00
Prevent a crash if Delete is not defined for the given renderbuffer.
Patch from OUSADOU Azwaw. Thanks. ok oga@.
This commit is contained in:
4
dist/Mesa/src/mesa/main/context.c
vendored
4
dist/Mesa/src/mesa/main/context.c
vendored
@@ -656,7 +656,9 @@ delete_renderbuffer_cb(GLuint id, void *data, void *userData)
|
||||
{
|
||||
struct gl_renderbuffer *rb = (struct gl_renderbuffer *) data;
|
||||
rb->RefCount = 0; /* see comment for FBOs above */
|
||||
rb->Delete(rb);
|
||||
|
||||
if (rb-Delete)
|
||||
rb->Delete(rb);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user