Expose egl_config (#3907)

This commit is contained in:
Xiaopeng Li authored and GitHub committed 2023-07-07 17:55:47 -04:00
1 parent 234dea18c4
commit 9ab44e6ff6
1 file changed
+7
+7
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 {}