Skip to content

fix GL Clear(...)#2354

Merged
nkast merged 1 commit intomainfrom
fixGLClear
Jun 22, 2025
Merged

fix GL Clear(...)#2354
nkast merged 1 commit intomainfrom
fixGLClear

Conversation

@nkast
Copy link
Copy Markdown
Contributor

@nkast nkast commented Jun 22, 2025

When Scissor is enabled in RasterizerState,
clear() was affecting only the Viewport.

This fix implements the correct XNA behavior.
Clear will set the entire Backbuffer/RenderTarget and ignores the
Viewport & Scissor.

When Scissor is enabled in RasterizerState,
clear() was affecting only the Viewport.

This fix implements the correct XNA behavior.
Clear will set the entire Backbuffer/RenderTarget and ignores the
Viewport & Scissor.
@nkast nkast merged commit 24bdec3 into main Jun 22, 2025
1 check passed
@nkast nkast deleted the fixGLClear branch June 22, 2025 10:09
nkast added a commit that referenced this pull request Nov 8, 2025
fixes #2549

bug introduced in #2354
nkast added a commit that referenced this pull request Nov 8, 2025
nkast added a commit that referenced this pull request Nov 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant