gpui: Fix crash when starting Zed on macOS during texture creation (#36382)

Closes #36229

Fix zero-sized texture creation that triggers a SIGABRT in the Metal
renderer. Not sure why this happens yet, but it likely occurs when
`native_window.contentView()` returns a zero `NSSize` during initial
window creation, before the view size is computed.

Release Notes:

- Fixed a rare startup crash on macOS.
7dc4adbd40Smit Barmase committed on 8/18/2025, 2:46:17 AM· committed by GitHubparent2dbc951
1 file changedLine totals unavailable