Skip to content

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
@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

2 participants