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

Slightly nudge down the multiplier used for float->u8 conversion in fragment shaders #19364

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

hrydgard
Copy link
Owner

Seems in lowp precision (as seen on some Android devices) this got rounded up to 256 when multiplied by 1.0, causing the u8 to overflow, giving us the wrong value instead of nicely rounding down to 255 with the floor function.

Fixes #19235

…ragment shaders

Seems in lowp precision (as seen on some Android devices) this got
rounded up to 256 when multiplied by 1.0, causing the u8 to overflow, giving
us the wrong value instead of nicely rounding down to 255 with the floor
function.

Fixes #19235
@hrydgard hrydgard added OpenGL GE emulation Backend-independent GPU issues labels Jul 22, 2024
@hrydgard hrydgard added this to the v1.18.0 milestone Jul 22, 2024
@hrydgard hrydgard marked this pull request as ready for review July 22, 2024 16:39
@hrydgard hrydgard merged commit a0299e1 into master Jul 22, 2024
15 checks passed
@hrydgard hrydgard deleted the platypus-fix branch July 22, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GE emulation Backend-independent GPU issues OpenGL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Platypus: OpenGL rendering error
1 participant