Skip to content

Conversation

fancycode
Copy link
Member

Fixes the first example from #460

@farindk the stream changes image information as follows:

Image: 352x288 bpp_y=8 bpp_c=8
Image: 512x256 bpp_y=8 bpp_c=8
Image: 512x256 bpp_y=14 bpp_c=8
Image: 512x256 bpp_y=14 bpp_c=8

I fixed the crash by resizing the SDL window if the image size in the stream changes.

The second example still crashes on the fist image in the stream, I haven't figured out why yet. Looks like the memory returned from SDL_LockTexture is too small for display444as420 later even through the width/height seem to match from what was created.

@fancycode fancycode marked this pull request as draft July 8, 2024 08:45
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