stw: If stfb not set don't call into mesa
authorJakob Bornecrantz <jakob@vmware.com>
Mon, 8 Jun 2009 12:34:16 +0000 (14:34 +0200)
committerJakob Bornecrantz <jakob@vmware.com>
Mon, 8 Jun 2009 12:45:56 +0000 (14:45 +0200)
src/gallium/state_trackers/wgl/shared/stw_framebuffer.c

index de37d135dfe4bd1451831940519a711ca56245cd..f27f4cda2186e75295b7f5b0482ecf7b8e9f2aba 100644 (file)
@@ -118,7 +118,8 @@ stw_call_window_proc(
           * be called from any thread.
           */
          pipe_mutex_lock( fb->mutex );
-         st_resize_framebuffer( fb->stfb, width, height );
+         if (fb->stfb)
+            st_resize_framebuffer( fb->stfb, width, height );
          pipe_mutex_unlock( fb->mutex );
       }
    }