moderngl-window
moderngl-window copied to clipboard
integrations/imgui: use viewport size for imgui display_size
Currently the imgui integration does not play well with fixed aspect ratio and black bars.
This fixes it, making sure imgui draws inside the viewport, and then shifts the scissor boxes in screen space to be inside the viewport.