wgl: Call pipe_screen::destroy on exit.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 19 Feb 2009 12:58:00 +0000 (12:58 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 19 Feb 2009 13:29:04 +0000 (13:29 +0000)
src/gallium/state_trackers/wgl/shared/stw_device.c

index d85cb45084f78a98368e127e1328d85a1f17cbdf..4d705b46825cb1e66ca561f338022b84cbfae5fa 100644 (file)
@@ -108,11 +108,11 @@ st_cleanup(void)
 
    pipe_mutex_destroy( stw_dev->mutex );
    
-   if(stw_dev) {
+   stw_dev->screen->destroy(stw_dev->screen);
+
 #ifdef DEBUG
-      debug_memory_end(stw_dev->memdbg_no);
+   debug_memory_end(stw_dev->memdbg_no);
 #endif
-   }
 
    stw_dev = NULL;
 }