show err if failed to create new window
This commit is contained in:
parent
72c55b4653
commit
9acee42c38
1 changed files with 2 additions and 1 deletions
|
@ -462,7 +462,8 @@ impl Platform for WindowsPlatform {
|
|||
options,
|
||||
self.generate_creation_info(),
|
||||
&self.directx_devices,
|
||||
)?;
|
||||
)
|
||||
.inspect_err(|err| show_error("Failed to open new window", err.to_string()))?;
|
||||
let handle = window.get_raw_handle();
|
||||
self.raw_window_handles.write().push(handle);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue