mirror of
https://github.com/touchHLE/rust-sdl2.git
synced 2026-01-31 01:25:23 +01:00
Merge pull request #1409 from HalloIhr0/metal-symbol-lookup-fix
Added macos check to SDL_Metal_DestroyView call
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user