st/mesa: call glthread_destroy() before _vbo_DestroyContext()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 12:09:19 +0000 (23:09 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 16 Mar 2017 22:47:02 +0000 (09:47 +1100)
commit124ec417f968bfb081b238fdcde04b9aaf9d6a2d
treeeb372be8acda8dc0bf7027a706390e82d212840c
parent08df015b9de8ccb16ce6db93890910f8a02be4c6
st/mesa: call glthread_destroy() before _vbo_DestroyContext()

Otherwise we have a race condition between vbo calls in the
glthread and the _vbo_DestroyContext() call.

This fixes a bunch of piglit crashes.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/context.c
src/mesa/state_tracker/st_context.c