summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-11-05 09:35:31 -0700
committerBrian <[email protected]>2007-11-05 09:35:31 -0700
commitf221ea658b8aabefb419ad19826906a3afa3e806 (patch)
treeef90e9f5a5e9c4080fd70284d17ac86a67d4e114 /src/mesa/state_tracker/st_context.c
parent29c1fdd0ce57a7a69e4d90eaacff7102b69bca9c (diff)
comments, tweaks
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index fbce19b58eb..a8cc618d770 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -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 );
}