rusticl/gl: mark GLCtxManager as Send + Sync
Signed-off-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26040>
This commit is contained in:
@@ -137,6 +137,13 @@ pub struct GLCtxManager {
|
||||
gl_ctx: GLCtx,
|
||||
}
|
||||
|
||||
// SAFETY: We do have a few pointers inside [GLCtxManager], but nothing really relevant here:
|
||||
// * pointers of the GLX/EGL context and _XDisplay/EGLDisplay, but we don't do much with them
|
||||
// except calling into our mesa internal GL sharing extension, which properly locks data.
|
||||
// * pointer to the _XDisplay/EGLDisplay
|
||||
unsafe impl Send for GLCtxManager {}
|
||||
unsafe impl Sync for GLCtxManager {}
|
||||
|
||||
impl GLCtxManager {
|
||||
pub fn new(
|
||||
gl_context: *mut c_void,
|
||||
|
||||
Reference in New Issue
Block a user