void
-vbo_exec_init(struct gl_context *ctx)
+vbo_exec_init(struct gl_context *ctx, bool use_buffer_objects)
{
struct vbo_exec_context *exec = &vbo_context(ctx)->exec;
exec->ctx = ctx;
- /* aelt_context should have been created by the caller */
- assert(ctx->aelt_context);
-
- vbo_exec_vtx_init(exec);
+ vbo_exec_vtx_init(exec, use_buffer_objects);
ctx->Driver.NeedFlush = 0;
ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END;
- /* The aelt_context state should still be dirty from its creation */
- assert(_ae_is_state_dirty(ctx));
-
exec->eval.recalculate_maps = GL_TRUE;
}
{
struct vbo_exec_context *exec = &vbo_context(ctx)->exec;
- if (ctx->aelt_context) {
- _ae_destroy_context( ctx );
- ctx->aelt_context = NULL;
- }
-
vbo_exec_vtx_destroy( exec );
}
if (p0->start + p0->count != p1->start)
return false;
- if (p0->basevertex != p1->basevertex ||
- p0->num_instances != p1->num_instances ||
- p0->base_instance != p1->base_instance)
- return false;
+ assert(p0->basevertex == p1->basevertex &&
+ p0->num_instances == p1->num_instances &&
+ p0->base_instance == p1->base_instance);
/* can always merge subsequent GL_POINTS primitives */
if (p0->mode == GL_POINTS)