Home | History | Annotate | Download | only in vbo

Lines Matching full:ctx

50 _playback_copy_to_current(struct gl_context *ctx,
53 struct vbo_context *vbo = vbo_context(ctx);
73 ctx->Driver.GetBufferSubData( ctx, offset,
102 ctx->NewState |= _NEW_LIGHT;
104 ctx->NewState |= _NEW_CURRENT_ATTRIB;
113 if (ctx->Light.ColorMaterialEnabled) {
114 _mesa_update_color_material(ctx, ctx->Current.Attrib[VBO_ATTRIB_COLOR0]);
122 ctx->Driver.CurrentExecPrimitive = PRIM_OUTSIDE_BEGIN_END;
124 ctx->Driver.CurrentExecPrimitive = prim->mode;
134 static void vbo_bind_vertex_list(struct gl_context *ctx,
137 struct vbo_context *vbo = vbo_context(ctx);
153 switch (get_program_mode(ctx)) {
183 if ((ctx->VertexProgram._Current->Base.InputsRead & VERT_BIT_POS) == 0 &&
184 (ctx->VertexProgram._Current->Base.InputsRead & VERT_BIT_GENERIC0)) {
212 _mesa_reference_buffer_object(ctx,
224 _mesa_set_varying_vp_inputs( ctx, varying_inputs );
225 ctx->NewDriverState |= ctx->DriverFlags.NewArray;
230 vbo_save_loopback_vertex_list(struct gl_context *ctx,
234 ctx->Driver.MapBufferRange(ctx, 0,
239 vbo_loopback_vertex_list(ctx,
247 ctx->Driver.UnmapBuffer(ctx, list->vertex_store->bufferobj);
257 vbo_save_playback_vertex_list(struct gl_context *ctx, void *data)
261 struct vbo_save_context *save = &vbo_context(ctx)->save;
272 vbo_save_unmap_vertex_store(ctx, save->vertex_store);
276 FLUSH_CURRENT(ctx, 0);
280 if (ctx->Driver.CurrentExecPrimitive != PRIM_OUTSIDE_BEGIN_END &&
289 vbo_save_loopback_vertex_list( ctx, node );
297 vbo_save_loopback_vertex_list( ctx, node );
302 if (ctx->NewState)
303 _mesa_update_state( ctx );
306 if ((ctx->VertexProgram.Enabled && !ctx->VertexProgram._Enabled) ||
307 (ctx->FragmentProgram.Enabled && !ctx->FragmentProgram._Enabled)) {
308 _mesa_error(ctx, GL_INVALID_OPERATION,
313 vbo_bind_vertex_list( ctx, node );
315 vbo_draw_method(vbo_context(ctx), DRAW_DISPLAY_LIST);
319 if (ctx->NewState)
320 _mesa_update_state( ctx );
323 vbo_context(ctx)->draw_prims(ctx,
336 _playback_copy_to_current( ctx, node );
340 save->buffer_ptr = vbo_save_map_vertex_store(ctx, save->vertex_store);