void _vbo_DestroyContext(struct gl_context *ctx) { struct vbo_context *vbo = vbo_context(ctx); if (ctx->aelt_context) { _ae_destroy_context(ctx); ctx->aelt_context = NULL; } if (vbo) { GLuint i; for (i = 0; i < VBO_ATTRIB_MAX; i++) { _mesa_reference_buffer_object(ctx, &vbo->currval[i].BufferObj, NULL); } vbo_exec_destroy(ctx); if (ctx->API == API_OPENGL_COMPAT) vbo_save_destroy(ctx); _mesa_reference_vao(ctx, &vbo->VAO, NULL); free(vbo); ctx->vbo_context = NULL; } }
void vbo_exec_destroy( struct gl_context *ctx ) { 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 ); }
void _vbo_DestroyContext( GLcontext *ctx ) { if (ctx->aelt_context) { _ae_destroy_context( ctx ); ctx->aelt_context = NULL; } vbo_exec_destroy(ctx); vbo_save_destroy(ctx); FREE(vbo_context(ctx)); ctx->swtnl_im = NULL; }
void _vbo_DestroyContext( GLcontext *ctx ) { if (ctx->aelt_context) { _ae_destroy_context( ctx ); ctx->aelt_context = NULL; } vbo_exec_destroy(ctx); #if FEATURE_dlist vbo_save_destroy(ctx); #endif FREE(vbo_context(ctx)); ctx->swtnl_im = NULL; }
void _tnl_DestroyContext( GLcontext *ctx ) { TNLcontext *tnl = TNL_CONTEXT(ctx); _tnl_array_destroy( ctx ); _tnl_vtx_destroy( ctx ); _tnl_save_destroy( ctx ); _tnl_destroy_pipeline( ctx ); _ae_destroy_context( ctx ); FREE(tnl); ctx->swtnl_context = 0; }
void _vbo_DestroyContext(struct gl_context *ctx) { struct vbo_context *vbo = vbo_context(ctx); if (ctx->aelt_context) { _ae_destroy_context(ctx); ctx->aelt_context = NULL; } if (vbo) { _mesa_reference_buffer_object(ctx, &vbo->binding.BufferObj, NULL); vbo_exec_destroy(ctx); if (ctx->API == API_OPENGL_COMPAT) vbo_save_destroy(ctx); _mesa_reference_vao(ctx, &vbo->VAO, NULL); free(vbo); ctx->vbo_context = NULL; } }
void _vbo_DestroyContext( struct gl_context *ctx ) { struct vbo_context *vbo = vbo_context(ctx); if (ctx->aelt_context) { _ae_destroy_context( ctx ); ctx->aelt_context = NULL; } if (vbo) { GLuint i; for (i = 0; i < VBO_ATTRIB_MAX; i++) { _mesa_reference_buffer_object(ctx, &vbo->currval[i].BufferObj, NULL); } vbo_exec_destroy(ctx); vbo_save_destroy(ctx); FREE(vbo); ctx->swtnl_im = NULL; } }