Skip to content
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

Window not updated after first frame #3082

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Window not updated after first frame #3082

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

These attachments are available in the static archive:

Reported in version: HG 2.0
Reported for operating system, platform: Windows 10, x86_64

Comments on the original bug report:

On 2018-11-29 18:06:32 +0000, Michel Rouzic wrote:

Created attachment 3512
Program with source that reproduces the problem described depending on the DLL

Another day another bug, but this time I didn't come empty-handed. Since these two November 1st commits by Ryan C. Gordon:
https://hg.libsdl.org/SDL/rev/dc9108cd43403628a5f747b8ce18443c5459ff93
https://hg.libsdl.org/SDL/rev/03d0bddca61b8a6bcbbc7c7f1382dfa97756a7a4

my program's display fails to update after the first frame. The good news is that I was able to produce a test program with a very simple and beautiful code that reproduces the problem, with DLLs included that either work (those from before those commits) or don't. If I enlarge the window (not included in the test program, I wanted to keep it to the point) then SDL_LockTexture() returns a bogus pointer that can't be written to.

I marked it as major because well for me it's pretty major, I can't ship my program any version of SDL made after November 1st. I've only checked on Windows 10, it's probably a Windows-only thing. Please read instructions.txt to test it with different DLLs.

On 2018-12-03 06:59:11 +0000, Ryan C. Gordon wrote:

This is now fixed in https://hg.libsdl.org/SDL/rev/3da9ecf40a13, thanks!

--ryan.

On 2018-12-03 10:24:18 +0000, Michel Rouzic wrote:

Thank you, that mostly solves it, however now when resizing the window in any direction the window turns permanently white. I updated my code to handle resizing properly but then I realised that the bug appears regardless, so the test program you have should give you that issue with the latest DLL.

On 2018-12-03 14:27:17 +0000, Ryan C. Gordon wrote:

(In reply to Michel Rouzic from comment # 2)

Thank you, that mostly solves it, however now when resizing the window in
any direction the window turns permanently white. I updated my code to
handle resizing properly but then I realised that the bug appears
regardless, so the test program you have should give you that issue with the
latest DLL.

This bug is fixed now, too: https://hg.libsdl.org/SDL/rev/f167f874ae55

Sorry about that!

--ryan.

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

No branches or pull requests

1 participant