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

softgpu: Fix off-by-one rendering after half-pixel #16385

Merged
merged 1 commit into from
Nov 13, 2022

Conversation

unknownbrackets
Copy link
Collaborator

@unknownbrackets unknownbrackets commented Nov 13, 2022

If the X is after the center of a pixel, the first pixel we draw is the next one. This wasn't being accounted for properly in one place which resulted in the actual bytes written to the screen being off.

See #16131 - Beyond the Milky Way example.

-[Unknown]

If the X is after a half-pixel offset, the first pixel we draw is the next
one.  This wasn't being accounted for properly in one place.
@unknownbrackets unknownbrackets added this to the v1.14.0 milestone Nov 13, 2022
@hrydgard hrydgard merged commit 2e6a19f into hrydgard:master Nov 13, 2022
@unknownbrackets unknownbrackets deleted the softgpu-rect branch November 13, 2022 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants