mapi: Remove usage of _glapi_check_multithread and _glapi_destroy_multithread
They are empty stub functions now so have no need call to them Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Acked-by: Jose Fonseca <jfonseca@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17814>
This commit is contained in:
@@ -260,11 +260,6 @@ stw_cleanup(void)
|
|||||||
|
|
||||||
stw_dev->screen->destroy(stw_dev->screen);
|
stw_dev->screen->destroy(stw_dev->screen);
|
||||||
|
|
||||||
/* glapi is statically linked: we can call the local destroy function. */
|
|
||||||
#ifdef _GLAPI_NO_EXPORTS
|
|
||||||
_glapi_destroy_multithread();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
stw_tls_cleanup();
|
stw_tls_cleanup();
|
||||||
|
|
||||||
util_dynarray_fini(&stw_dev->pixelformats);
|
util_dynarray_fini(&stw_dev->pixelformats);
|
||||||
|
@@ -133,8 +133,6 @@ MakeContextCurrent(Display * dpy, GLXDrawable draw,
|
|||||||
return GL_FALSE;
|
return GL_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_glapi_check_multithread();
|
|
||||||
|
|
||||||
__glXLock();
|
__glXLock();
|
||||||
if (oldGC == gc &&
|
if (oldGC == gc &&
|
||||||
gc->currentDrawable == draw && gc->currentReadable == read) {
|
gc->currentDrawable == draw && gc->currentReadable == read) {
|
||||||
|
@@ -1493,11 +1493,6 @@ _mesa_make_current( struct gl_context *newCtx,
|
|||||||
st_glFlush(curCtx, 0);
|
st_glFlush(curCtx, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Call this periodically to detect when the user has begun using
|
|
||||||
* GL rendering from multiple threads.
|
|
||||||
*/
|
|
||||||
_glapi_check_multithread();
|
|
||||||
|
|
||||||
if (!newCtx) {
|
if (!newCtx) {
|
||||||
_glapi_set_dispatch(NULL); /* none current */
|
_glapi_set_dispatch(NULL); /* none current */
|
||||||
/* We need old ctx to correctly release Draw/ReadBuffer
|
/* We need old ctx to correctly release Draw/ReadBuffer
|
||||||
|
Reference in New Issue
Block a user