st/dri: fix crash when dri2_drawable_get_buffers fails
authorMarek Olšák <maraeo@gmail.com>
Sat, 31 Jul 2010 00:19:27 +0000 (02:19 +0200)
committerMarek Olšák <maraeo@gmail.com>
Tue, 3 Aug 2010 22:07:28 +0000 (00:07 +0200)
commitafbf446de5ad91743e2e2a76799bd87f3eed5f9a
tree37db8f5933c3d93b4f6a36ba3c9275de73beb3db
parent0614006d090902324149387ec150231b647928fd
st/dri: fix crash when dri2_drawable_get_buffers fails

It's easily reproducible with Compiz with its Resize window mode
set to Normal (which is usually not the default mode).

https://bugs.freedesktop.org/show_bug.cgi?id=28658
https://bugs.freedesktop.org/show_bug.cgi?id=29303

This is actually a workaround to prevent Compiz crashes.
Instead, a completely white titlebar might show up during resizing
transparent windows (a rare case).

The underlying cause should be fixed by someone who has more knowledge
about the code. (dri2_drawable_get_buffers should not return NULL)

Acked-By: Jakob Bornecrantz <jakob@vmware.com>
src/gallium/state_trackers/dri/drm/dri2.c