Home | History | Annotate | Download | only in state_tracker

Lines Matching full:ctx

74  * Called via ctx->Driver.UpdateState()
76 void st_invalidate_state(struct gl_context * ctx, GLuint new_state)
78 struct st_context *st = st_context(ctx);
86 /* Update the vertex shader if ctx->Light._ClampVertexColor was changed. */
97 _vbo_InvalidateState(ctx, new_state);
117 st_create_context_priv( struct gl_context *ctx, struct pipe_context *pipe,
126 ctx->st = st;
128 st->ctx = ctx;
135 _vbo_CreateContext(ctx);
181 vbo_use_buffer_objects(ctx);
185 vbo_always_unmap_buffers(ctx);
189 st->ctx->FragmentProgram._MaintainTexEnvProgram = GL_TRUE;
191 st->ctx->VertexProgram._MaintainTnlProgram = GL_TRUE;
216 struct gl_context *ctx;
217 struct gl_context *shareCtx = share ? share->ctx : NULL;
228 ctx = _mesa_create_context(api, visual, shareCtx, &funcs, NULL);
229 if (!ctx) {
233 st_init_driver_flags(&ctx->DriverFlags);
239 _mesa_set_mvp_with_dp4( ctx, GL_TRUE );
241 return st_create_context_priv(ctx, pipe, options);
266 st->ctx->Driver.DeleteTexture(st->ctx, st->default_texture);
285 struct gl_context *ctx = st->ctx;
306 _mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache);
308 _vbo_DestroyContext(st->ctx);
312 _mesa_free_context_data(ctx);
323 free(ctx);