Merge pull request #1409 from HalloIhr0/metal-symbol-lookup-fix

Added macos check to SDL_Metal_DestroyView call
This commit is contained in:
Cobrand
2024-06-15 17:09:40 +02:00
committed by GitHub

View File

@@ -555,6 +555,7 @@ impl Drop for WindowContext {
#[doc(alias = "SDL_DestroyWindow")]
fn drop(&mut self) {
unsafe {
#[cfg(target_os = "macos")]
if !self.metal_view.is_null() {
sys::SDL_Metal_DestroyView(self.metal_view);
}