hook in teximage bits
authorBrian <brian@i915.localnet.net>
Fri, 3 Aug 2007 02:40:19 +0000 (20:40 -0600)
committerBrian <brian@i915.localnet.net>
Fri, 3 Aug 2007 02:40:19 +0000 (20:40 -0600)
src/mesa/sources
src/mesa/state_tracker/st_context.c

index a7c31001c2c0c57e16aedbb94aab3c945700883b..8074a43c851daf6df735ef38c6c4b76d175cae96 100644 (file)
@@ -194,6 +194,7 @@ STATETRACKER_SOURCES = \
        state_tracker/st_cb_clear.c \
        state_tracker/st_cb_drawpixels.c \
        state_tracker/st_cb_program.c \
+       state_tracker/st_cb_teximage.c \
        state_tracker/st_draw.c \
        state_tracker/st_context.c \
        state_tracker/st_texobj.c
index 168ad33d6e5a8934de0330f569b6a32e196d3336..6814eac2dc9ba8bdcf590ebc99a9ab578e2d399f 100644 (file)
@@ -30,6 +30,7 @@
 #include "st_context.h"
 #include "st_cb_clear.h"
 #include "st_cb_drawpixels.h"
+#include "st_cb_teximage.h"
 #include "st_atom.h"
 #include "st_draw.h"
 #include "st_program.h"
@@ -59,9 +60,11 @@ struct st_context *st_create_context( GLcontext *ctx,
 
    st_init_atoms( st );
    st_init_draw( st );
-   st_init_cb_program( st );
+
    st_init_cb_clear( st );
+   st_init_cb_program( st );
    st_init_cb_drawpixels( st );
+   st_init_cb_teximage( st );
 
    return st;
 }
@@ -71,7 +74,12 @@ void st_destroy_context( struct st_context *st )
 {
    st_destroy_atoms( st );
    st_destroy_draw( st );
+
+   st_destroy_cb_clear( st );
    st_destroy_cb_program( st );
+   st_destroy_cb_drawpixels( st );
+   st_destroy_cb_teximage( st );
+
    st->pipe->destroy( st->pipe );
    FREE( st );
 }