st/mesa: handle stfbi being NULL on entry of st_framebuffer_reuse_or_create
authorLucas Stach <l.stach@pengutronix.de>
Thu, 13 Jul 2017 16:58:04 +0000 (18:58 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 14 Jul 2017 15:12:00 +0000 (17:12 +0200)
commita98c1fbd9bd8601ef4aecb5edbb8af74a32067c2
tree2db7491d8f919ab3d37b8eef38e50874725e83a7
parent5295df63ad7822e14e7dabfc107bc416271bfcdc
st/mesa: handle stfbi being NULL on entry of st_framebuffer_reuse_or_create

Apparently this can happen. Just bail out early in that case, as all the called
functions return NULL in that case.

Fixes weston-terminal for me.

Fixes: 147d7fb772a7 ("st/mesa: add a winsys buffers list in st_context")
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_manager.c