if (ctx->Array.ElementArrayBufferObj->Name) {
const GLvoid *map = ctx->Driver.MapBuffer(ctx,
GL_ELEMENT_ARRAY_BUFFER_ARB,
- GL_DYNAMIC_READ_ARB,
+ GL_READ_ONLY,
ctx->Array.ElementArrayBufferObj);
max_index = get_max_index(count, type, ADD_POINTERS(map, indices));
assert(!vertex_store->buffer);
vertex_store->buffer = (GLfloat *)ctx->Driver.MapBuffer(ctx,
GL_ARRAY_BUFFER_ARB, /* not used */
- GL_STATIC_DRAW_ARB, /* not used */
+ GL_WRITE_ONLY, /* not used */
vertex_store->bufferobj);
assert(vertex_store->buffer);
if (vbo->Name && !vbo->Pointer)
ctx->Driver.MapBuffer(ctx,
GL_ARRAY_BUFFER_ARB,
- GL_DYNAMIC_DRAW_ARB, /* XXX */
+ GL_WRITE_ONLY, /* XXX */
vbo);
copy->varying[j].src_ptr = ADD_POINTERS(vbo->Pointer,
if (copy->ib->obj->Name && !copy->ib->obj->Pointer)
ctx->Driver.MapBuffer(ctx,
GL_ARRAY_BUFFER_ARB, /* XXX */
- GL_DYNAMIC_DRAW_ARB, /* XXX */
+ GL_WRITE_ONLY, /* XXX */
copy->ib->obj);
switch (copy->ib->type) {