Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modal popups result in panic due to scissor rect problem #99

Closed
BeastLe9enD opened this issue Apr 28, 2023 · 1 comment
Closed

Modal popups result in panic due to scissor rect problem #99

BeastLe9enD opened this issue Apr 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@BeastLe9enD
Copy link
Contributor

Description

When I create a modal popup, imgui crashes:

2023-04-28T19:49:10.076Z ERROR [wgpu::backend::direct] Handling wgpu errors as fatal by default
thread 'main' panicked at 'wgpu error: Validation Error

Caused by:
    In a RenderPass
      note: encoder = `<CommandBuffer-(0, 1129, Vulkan)>`
    In a set_scissor_rect command
    Scissor Rect { x: 0, y: 0, w: 1602, h: 902 } is not contained in the render target Extent3d { width: 1600, height: 900, depth_or_array_layers: 1 }

Repro steps

Run the demo example (and select the modal popup in the imgui demo window)

System Information

imgui = { version = "0.11.0", features = ["docking"] }
imgui-sys = { version = "0.11.0", features = ["docking"] }
imgui-wgpu = { git = "https://github.com/Yatekii/imgui-wgpu-rs" }
imgui-winit-support = "0.11.0"
@BeastLe9enD BeastLe9enD added the bug Something isn't working label Apr 28, 2023
@junglie85
Copy link

junglie85 commented Jun 19, 2023

Is this an imgui-wgpu issue or an imgui issue? I have the same problem and raised imgui-rs/imgui-rs#731.

Would taking the minimum of the scissor rect and the render target extent be a suitable approach to resolving the problem?

@PixelboysTM PixelboysTM mentioned this issue Aug 29, 2023
6 tasks
Yatekii added a commit that referenced this issue Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants