stw: If stfb not set don't call into mesa
[mesa.git] / 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 );
       }
    }