-
Notifications
You must be signed in to change notification settings - Fork 132
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
Fixed issue 580 #582
Fixed issue 580 #582
Conversation
'refcount' is a private SDL_Surface field
Upstream issue: TurningWheel/Barony#580 SDL bisect done by Nam Nguyen to find which SDL change introduced the texture issue in Barony. Barony fix sent upstream by Sylvain Becker TurningWheel/Barony#582 Patches for the port done by Nam Nguyen <namn at berkeley.edu> thanks everyone for fixing this issue ok sthen@ brynet@ and maintainer (David Carlier)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, well done.
Upstream issue: TurningWheel/Barony#580 SDL bisect done by Nam Nguyen to find which SDL change introduced the texture issue in Barony. Barony fix sent upstream by Sylvain Becker TurningWheel/Barony#582 Patches for the port done by Nam Nguyen <namn at berkeley.edu> thanks everyone for fixing this issue ok sthen@ brynet@ and maintainer (David Carlier)
Upstream issue: TurningWheel/Barony#580 SDL bisect done by Nam Nguyen to find which SDL change introduced the texture issue in Barony. Barony fix sent upstream by Sylvain Becker TurningWheel/Barony#582 Patches for the port done by Nam Nguyen <namn at berkeley.edu> thanks everyone for fixing this issue ok sthen@ brynet@ and maintainer (David Carlier)
Commit ce9b618 breaks the minimap (corrupted texture, eventual segfault) if I apply this patch to the 3.3.4 branch (last version available via Humble). If it doesn't break later versions, that's fine, this comment will hopefully help anyone else in my position. But it's also probably worth double-checking that it doesn't corrupt the minimap in the current master and 3.3.7 branch (just start a new game, if there's a problem, you'll get "static" on the bottom half of the minimap). Without this commit, I haven't noticed any other issues, so I'm not sure what problem it is supposed to solve. That said, the rest of this PR works as intended (and thanks for fixing the broken textures!) |
@perkinslr You can test the issue with latest (head) SDL_ttf, or simulate it by creating an intermediate surface with pitch != width Though, the patch may be wrong because:
To solve some potential issue, you can also manually pack the surface, if needed. |
* ignore commit for unpack alignment as seems to just break things TurningWheel@ce9b618
This should fixed the issue #580