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

Random garbage in window -- nothing updates (OpenGL) #496

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

Random garbage in window -- nothing updates (OpenGL) #496

SDLBugzilla opened this issue Feb 10, 2021 · 0 comments
Labels
abandoned Bug has been abandoned for various reasons

Comments

@SDLBugzilla
Copy link
Collaborator

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 2.0
Reported for operating system, platform: Windows (XP), x86

Comments on the original bug report:

On 2011-11-03 23:18:18 +0000, Vern Jensen wrote:

For build SDL-1.3.0-5605,

The documentation here:

http://wiki.libsdl.org/moin.cgi/SDL_GL_SetAttribute?highlight=%28%5CbCategoryAPI%5Cb%29%7C%28SDLFunctionTemplate%29%7C%28SGFunctions%29

states that SDL_GL_SetAttribute should be called before window creation. However, doing so on Windows Xp with SDL 1.3.0-5605 causes random garbage to appear in the window, and nothing is drawn/updated. Removing the SDL_GL_SetAttribute calls, OR putting them after context creation resolves the problem.

The problem is easily demonstrated with this sample code:

http://www.opengl.org/wiki/Tutorial1:_Creating_a_Cross_Platform_OpenGL_3.2_Context_in_SDL_(C_/_SDL)

Please note however that I modified this to work. To make it not work, move the SDL_GL_SetAttribute calls up prior to creating the window. (Or even prior to creating the GL context.)

I'm fairly certain this happens even without the #include <GL3/gl3.h> header being used. However don't quote me on that.

On 2011-11-03 23:19:30 +0000, Vern Jensen wrote:

Note that this worked properly on MacOS X last time I tried it. however that might have been a slightly older version of SDL, not sure. It's on Windows XP that it exhibits this problem.

On 2018-08-06 21:20:20 +0000, Ryan C. Gordon wrote:

Hello, and sorry if you're getting dozens of copies of this message by email.

We are closing out bugs that appear to be abandoned in some form. This can happen for lots of reasons: we couldn't reproduce it, conversation faded out, the bug was noted as fixed in a comment but we forgot to mark it resolved, the report is good but the fix is impractical, we fixed it a long time ago without realizing there was an associated report, etc.

Individually, any of these bugs might have a better resolution (such as WONTFIX or WORKSFORME or INVALID) but we've added a new resolution of ABANDONED to make this easily searchable and make it clear that it's not necessarily unreasonable to revive a given bug report.

So if this bug is still a going concern and you feel it should still be open: please feel free to reopen it! But unless you respond, we'd like to consider these bugs closed, as many of them are several years old and overwhelming our ability to prioritize recent issues.

(please note that hundred of bug reports were sorted through here, so we apologize for any human error. Just reopen the bug in that case!)

Thanks,
--ryan.

@SDLBugzilla SDLBugzilla added abandoned Bug has been abandoned for various reasons bug labels Feb 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abandoned Bug has been abandoned for various reasons
Projects
None yet
Development

No branches or pull requests

1 participant