mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 19:40:10 +01:00
gallium: make cso_release_all() public
This commit is contained in:
parent
a41804909d
commit
386102c62a
2 changed files with 4 additions and 2 deletions
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue