mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-06 07:50:30 +01:00
mesa: unmap buffer objects during context tear-down
This commit is contained in:
parent
79ada8c633
commit
cc71704644
1 changed files with 4 additions and 0 deletions
|
|
@ -190,6 +190,10 @@ delete_bufferobj_cb(GLuint id, void *data, void *userData)
|
|||
{
|
||||
struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data;
|
||||
GLcontext *ctx = (GLcontext *) userData;
|
||||
if (bufObj->Pointer) {
|
||||
ctx->Driver.UnmapBuffer(ctx, 0, bufObj);
|
||||
bufObj->Pointer = NULL;
|
||||
}
|
||||
ctx->Driver.DeleteBuffer(ctx, bufObj);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue