mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
comments, tweaks
This commit is contained in:
parent
29c1fdd0ce
commit
f221ea658b
2 changed files with 9 additions and 3 deletions
|
|
@ -68,8 +68,11 @@ void st_invalidate_state(GLcontext * ctx, GLuint new_state)
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* XXX rename after above func is removed.
|
||||
*/
|
||||
struct st_context *st_create_context2(struct pipe_context *pipe,
|
||||
const GLvisual *visual,
|
||||
const __GLcontextModes *visual,
|
||||
struct st_context *share)
|
||||
{
|
||||
GLcontext *ctx;
|
||||
|
|
@ -129,6 +132,9 @@ struct st_context *st_create_context( GLcontext *ctx,
|
|||
}
|
||||
|
||||
|
||||
/*
|
||||
* XXX rename after below func is removed.
|
||||
*/
|
||||
void st_destroy_context2( struct st_context *st )
|
||||
{
|
||||
GLcontext *ctx = st->ctx;
|
||||
|
|
@ -151,7 +157,7 @@ void st_destroy_context( struct st_context *st )
|
|||
_mesa_delete_program_cache(st->ctx, st->pixel_xfer.cache);
|
||||
|
||||
st->pipe->destroy( st->pipe );
|
||||
FREE( st );
|
||||
free( st );
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ struct st_context *st_create_context( GLcontext *ctx,
|
|||
struct pipe_context *pipe);
|
||||
|
||||
struct st_context *st_create_context2(struct pipe_context *pipe,
|
||||
const GLvisual *visual,
|
||||
const __GLcontextModes *visual,
|
||||
struct st_context *share);
|
||||
|
||||
void st_destroy_context( struct st_context *st );
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue