You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rendering a modal popup panics because the scissor rect is larger than the render target extent.
This code causes the panic:
let style = ui.push_style_var(StyleVar::FramePadding([0.0, 0.0]));
if close_requested && !self.state.close_requested {
self.state.close_requested = true;
ui.open_popup("Quit?");
}
if self.state.close_requested {
ui.modal_popup_config("Quit?")
.always_auto_resize(true)
.build(|| {
ui.text("Are you sure you want to quit?");
ui.separator();
ui.checkbox("Don't ask again", &mut self.state.confirm_quit); // todo: save this in editor config
if ui.button_with_size("Ok", [120.0, 0.0]) {
self.state.quit = true;
ui.close_current_popup();
}
ui.same_line();
if ui.button_with_size("Cancel", [120.0, 0.0]) {
self.state.quit = false;
ui.close_current_popup();
}
});
}
style.pop();
thread 'main' panicked at 'wgpu error: Validation Error
Caused by:
In a RenderPass
note: encoder = `encoder`
In a set_scissor_rect command
Scissor Rect { x: 0, y: 0, w: 1282, h: 722 } is not contained in the render target Extent3d { width: 1280, height: 720, depth_or_array_layers: 1 }
', C:\Users\junglie85\.cargo\registry\src\index.crates.io-6f17d22bba15001f\wgpu-0.16.1\src\backend\direct.rs:3019:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I'm not sure if this is a bug (either imgui-rs or imgui-wgpu-rs) or whether I'm using the API incorrectly. Stepping through the DrawList, it looks to me like the data is incorrect:
Is this imgui-rs producing incorrect clip values or should imgui-wgpu be handling this differently?
Rendering a modal popup panics because the scissor rect is larger than the render target extent.
This code causes the panic:
I'm not sure if this is a bug (either imgui-rs or imgui-wgpu-rs) or whether I'm using the API incorrectly. Stepping through the
DrawList
, it looks to me like the data is incorrect:Is this imgui-rs producing incorrect clip values or should imgui-wgpu be handling this differently?
The text was updated successfully, but these errors were encountered: