Skip to content

Conversation

@SuchAFuriousDeath
Copy link
Contributor

@SuchAFuriousDeath SuchAFuriousDeath commented Dec 2, 2025

Fixes the game mentioned at #12460 ('The End') for me and makes it playable (without the changes, a RangeError is thrown. However, the issue also mentions a separate error that does not occur for me (PR probably upcoming on that one too).

The texture format is Rgba32Float for both 3 and 4 channels, so the channel count should only be taken into account when copying the pixels in each row. Since channels_in_raw_pixels would be a constant, I also refactored the surrounding code a little bit.

@Lord-McSweeney Lord-McSweeney added A-rendering Area: Rendering & Graphics render-wgpu Issues relating to the wgpu renderer T-fix Type: Bug fix (in something that's supposed to work already) labels Dec 2, 2025
@kjarosh
Copy link
Member

kjarosh commented Dec 2, 2025

I think crafting a test for this should be pretty simple

@Lord-McSweeney Lord-McSweeney added the waiting-on-author Waiting on the PR author to make the requested changes label Dec 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rendering Area: Rendering & Graphics render-wgpu Issues relating to the wgpu renderer T-fix Type: Bug fix (in something that's supposed to work already) waiting-on-author Waiting on the PR author to make the requested changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants