Rust-SDL2 / rust-sdl2

SDL2 bindings for Rust
MIT License
2.65k stars 465 forks source link

Added macos check to SDL_Metal_DestroyView call #1409

Closed HalloIhr0 closed 2 weeks ago

HalloIhr0 commented 2 weeks ago

Added a cfg check to SDL_Metal_DestroyView so that it works similar to SDL_Metal_CreateView. Without this change, tools like perf complain about not finding the function:

symbol lookup error: /home/somewhat/personal/info: undefined symbol: SDL_Metal_DestroyView

This change has only been tested on linux

Also should I add this to the changelog or does this count as internal?

Cobrand commented 2 weeks ago

I think you can skip the changelog for this one, as long at it's only visible in tools like perf no one will really care.