gallium: make cso_release_all() public
authorBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Apr 2008 18:10:14 +0000 (12:10 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Thu, 24 Apr 2008 18:15:05 +0000 (12:15 -0600)
src/gallium/auxiliary/cso_cache/cso_context.c
src/gallium/auxiliary/cso_cache/cso_context.h

index 8cf2313..b4609e9 100644 (file)
@@ -106,7 +106,7 @@ out:
 /**
  * Prior to context destruction, this function unbinds all state objects.
  */
-static void cso_release_all( struct cso_context *ctx )
+void cso_release_all( struct cso_context *ctx )
 {
    unsigned i;
    
@@ -134,7 +134,7 @@ static void cso_release_all( struct cso_context *ctx )
 void cso_destroy_context( struct cso_context *ctx )
 {
    if (ctx) {
-      cso_release_all( ctx );
+      //cso_release_all( ctx );
       FREE( ctx );
    }
 }
index cb46f71..b04e98b 100644 (file)
@@ -42,6 +42,8 @@ struct cso_context;
 
 struct cso_context *cso_create_context( struct pipe_context *pipe );
 
+void cso_release_all( struct cso_context *ctx );
+
 void cso_destroy_context( struct cso_context *cso );