show err if failed to create new window

This commit is contained in:
Junkui Zhang 2025-07-17 17:04:36 +08:00
parent 72c55b4653
commit 9acee42c38

View file

@ -462,7 +462,8 @@ impl Platform for WindowsPlatform {
options, options,
self.generate_creation_info(), self.generate_creation_info(),
&self.directx_devices, &self.directx_devices,
)?; )
.inspect_err(|err| show_error("Failed to open new window", err.to_string()))?;
let handle = window.get_raw_handle(); let handle = window.get_raw_handle();
self.raw_window_handles.write().push(handle); self.raw_window_handles.write().push(handle);