Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 494 of file vbo_split_copy.c.
Referenced by vbo_split_copy().
{ GLcontext *ctx = copy->ctx; GLuint i; /* Free our vertex and index buffers: */ _mesa_free(copy->translated_elt_buf); _mesa_free(copy->dstbuf); _mesa_free(copy->dstelt); /* Unmap VBO's */ for (i = 0; i < copy->nr_varying; i++) { struct gl_buffer_object *vbo = copy->varying[i].array->BufferObj; if (vbo->Name && vbo->Pointer) ctx->Driver.UnmapBuffer(ctx, GL_ARRAY_BUFFER_ARB, vbo); } /* Unmap index buffer: */ if (copy->ib->obj->Name && copy->ib->obj->Pointer) { ctx->Driver.UnmapBuffer(ctx, GL_ARRAY_BUFFER_ARB, /* XXX */ copy->ib->obj); } }