Skip to content

ApplyScissorViewport with disjoint scissor and scissorViewport causes crash in debug, undefined behaviour in release #10391

Description

@Jmangles

Describe the bug
When ApplyScissorViewport is called with disjoint rects, an assertion fails in debug builds and can cause underflow in release builds.

To Reproduce
In our project we encountered this using FilaGui and ImPlot, dragging the application from one display to another of a different resolution would crash reliably in debug builds due to the assertion.

Expected behavior
The issue is handled gracefully either through error propagation or ensuring the values are valid.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions