-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Using stbi_load_gif_from_memory results in incorrect image data for each frame of the GIF #1688
Comments
@cocoa-xu thanks for your help, I applied your patch, but it seems that the issue still persists. You can try it with my horse GIF. |
@cocoa-xu Thank you again for your help. In my program, I merge each frame's texture into a large texture, and then use UV coordinates based on the delay time read from the GIF to display the animation. I found that the following code seems to be necessary for correct display: if (dispose == 3) { |
Not a problem!
Ah I wasn't really sure about this, but I did get the same results when using I wonder if you happen to have any example file(s) that you can share for this case, which gives wrong data if we use |
|
Okay gotcha, I've updated the PR! Thanks for sending the test file! ;) |
After rendering each frame of the GIF, I noticed that some images are not correct.
The text was updated successfully, but these errors were encountered: