mesa: use _mesa_bufferobj_mapped()
This commit is contained in:
@@ -196,7 +196,7 @@ delete_bufferobj_cb(GLuint id, void *data, void *userData)
|
|||||||
{
|
{
|
||||||
struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data;
|
struct gl_buffer_object *bufObj = (struct gl_buffer_object *) data;
|
||||||
GLcontext *ctx = (GLcontext *) userData;
|
GLcontext *ctx = (GLcontext *) userData;
|
||||||
if (bufObj->Pointer) {
|
if (_mesa_bufferobj_mapped(bufObj)) {
|
||||||
ctx->Driver.UnmapBuffer(ctx, 0, bufObj);
|
ctx->Driver.UnmapBuffer(ctx, 0, bufObj);
|
||||||
bufObj->Pointer = NULL;
|
bufObj->Pointer = NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user