Lines Matching refs:ctx
40 static void vbo_save_callback_init( struct gl_context *ctx )
42 ctx->Driver.NewList = vbo_save_NewList;
43 ctx->Driver.EndList = vbo_save_EndList;
44 ctx->Driver.SaveFlushVertices = vbo_save_SaveFlushVertices;
45 ctx->Driver.BeginCallList = vbo_save_BeginCallList;
46 ctx->Driver.EndCallList = vbo_save_EndCallList;
47 ctx->Driver.NotifySaveBegin = vbo_save_NotifyBegin;
55 void vbo_save_init( struct gl_context *ctx )
57 struct vbo_context *vbo = vbo_context(ctx);
60 save->ctx = ctx;
63 vbo_save_callback_init(ctx);
75 _mesa_reference_buffer_object(ctx, &arrays->BufferObj,
87 _mesa_reference_buffer_object(ctx, &array->BufferObj,
92 ctx->Driver.CurrentSavePrimitive = PRIM_UNKNOWN;
96 void vbo_save_destroy( struct gl_context *ctx )
98 struct vbo_context *vbo = vbo_context(ctx);
108 _mesa_reference_buffer_object(ctx,
116 _mesa_reference_buffer_object(ctx, &save->arrays[i].BufferObj, NULL);
125 void vbo_save_fallback( struct gl_context *ctx, GLboolean fallback )
127 struct vbo_save_context *save = &vbo_context(ctx)->save;