st/mesa: init winsys buffers list only if context creation succeeds
authorCharmaine Lee <charmainel@vmware.com>
Wed, 12 Jul 2017 04:55:13 +0000 (21:55 -0700)
committerCharmaine Lee <charmainel@vmware.com>
Wed, 12 Jul 2017 05:46:55 +0000 (22:46 -0700)
commitd8f51bfcbf6755150a5d429161eca79b6b6cc84e
tree5a82542e113ce44c5c9f538dc69847a76e818afd
parented45e8db3c5001baac690b3129e31328805267cd
st/mesa: init winsys buffers list only if context creation succeeds

Fixes piglit test crash when context creation fails.

v2: As suggested by Brian, move the init to st_create_context_priv()

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_context.c