mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
mesa: use _mesa_bufferobj_mapped()
This commit is contained in:
parent
10b9d9f895
commit
4482f96c59
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ 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) {
|
||||
if (_mesa_bufferobj_mapped(bufObj)) {
|
||||
ctx->Driver.UnmapBuffer(ctx, 0, bufObj);
|
||||
bufObj->Pointer = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue