From: Jakob Bornecrantz Date: Mon, 8 Jun 2009 12:34:16 +0000 (+0200) Subject: stw: If stfb not set don't call into mesa X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d9d0e62306ce1a046ff724936016a4f080cf21a;p=mesa.git stw: If stfb not set don't call into mesa --- diff --git a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c b/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c index de37d135dfe..f27f4cda218 100644 --- a/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c +++ b/src/gallium/state_trackers/wgl/shared/stw_framebuffer.c @@ -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 ); } }