_mesa_error(ctx, GL_OUT_OF_MEMORY, "glMapBufferARB(access)");
}
+ bufObj->Access = access;
+
return bufObj->Pointer;
}
GLboolean status = GL_TRUE;
ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE);
-
bufObj = buffer_object_get_target( ctx, target, "UnmapBufferARB" );
if ( bufObj == NULL ) {
_mesa_error(ctx, GL_INVALID_OPERATION, "glUnmapBufferARB" );
status = (*ctx->Driver.UnmapBuffer)( ctx, target, bufObj );
}
+ bufObj->Access = GL_READ_WRITE_ARB; /* initial value, OK? */
bufObj->Pointer = NULL;
return status;