gallium: Add destroy callback to all *_winsys interfaces.

For consistency and to simplify these objects' destruction.
This commit is contained in:
José Fonseca
2008-08-08 12:23:21 +01:00
parent be36f7869e
commit 9dcb956a06
9 changed files with 32 additions and 0 deletions

View File

@@ -139,6 +139,11 @@ softpipe_is_format_supported( struct pipe_screen *screen,
static void
softpipe_destroy_screen( struct pipe_screen *screen )
{
struct pipe_winsys *winsys = screen->winsys;
if(winsys->destroy)
winsys->destroy(winsys);
FREE(screen);
}