Need to include glthread.h in glapi.h, not glapi.c so that GET_CURRENT_CONTEXT
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Mar 2006 20:31:50 +0000 (20:31 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 15 Mar 2006 20:31:50 +0000 (20:31 +0000)
commite6606909857901e5d49776e51e0eb2fa6d44a1bd
tree016b1eab4376f355892ca626d8a1b6f10ea894f9
parent30655c211c97a69f0eeb9ad6176ca1db67d15bf9
Need to include glthread.h in glapi.h, not glapi.c so that GET_CURRENT_CONTEXT
is properly defined.  Fixes long-standing, but unnoticed thread safety failure.
Also, updated comments.
src/mesa/glapi/glapi.c
src/mesa/glapi/glapi.h