Expose egl_config (#3907)

This commit is contained in:
Xiaopeng Li 2023-07-08 05:55:47 +08:00 committed by GitHub
parent 234dea18c4
commit 9ab44e6ff6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -630,6 +630,13 @@ impl Instance {
.expect("Could not lock instance. This is most-likely a deadlock.")
.version
}
pub fn egl_config(&self) -> khronos_egl::Config {
self.inner
.try_lock()
.expect("Could not lock instance. This is most-likely a deadlock.")
.config
}
}
unsafe impl Send for Instance {}