Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17213>
};
-
-static pipe_tsd ContextTSD;
+thread_local GLXContext ContextTSD;
/** Set current context for calling thread */
static void
SetCurrentContext(GLXContext c)
{
- pipe_tsd_set(&ContextTSD, c);
+ ContextTSD = c;
}
/** Get current context for calling thread */
static GLXContext
GetCurrentContext(void)
{
- return pipe_tsd_get(&ContextTSD);
+ return ContextTSD;
}