Lines Matching refs:ctx
37 void vbo_exec_init( struct gl_context *ctx )
39 struct vbo_exec_context *exec = &vbo_context(ctx)->exec;
41 exec->ctx = ctx;
45 if (!ctx->aelt_context &&
46 !_ae_create_context( ctx ))
54 _mesa_install_exec_vtxfmt( ctx, &exec->vtxfmt );
56 ctx->Driver.NeedFlush = 0;
57 ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END;
58 ctx->Driver.BeginVertices = vbo_exec_BeginVertices;
59 ctx->Driver.FlushVertices = vbo_exec_FlushVertices;
61 vbo_exec_invalidate_state( ctx, ~0 );
65 void vbo_exec_destroy( struct gl_context *ctx )
67 struct vbo_exec_context *exec = &vbo_context(ctx)->exec;
69 if (ctx->aelt_context) {
70 _ae_destroy_context( ctx );
71 ctx->aelt_context = NULL;
84 void vbo_exec_invalidate_state( struct gl_context *ctx, GLuint new_state )
86 struct vbo_exec_context *exec = &vbo_context(ctx)->exec;
95 _ae_invalidate_state(ctx, new_state);