| Summary: | SDL_GL_GetProcAddress failing for all non core functions | ||
|---|---|---|---|
| Product: | SDL | Reporter: | goblin hack <goblinhack> |
| Component: | video | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED WORKSFORME | QA Contact: | Sam Lantinga <slouken> |
| Severity: | blocker | ||
| Priority: | P2 | Keywords: | target-2.0.4 |
| Version: | 2.0.3 | ||
| Hardware: | x86 | ||
| OS: | Windows 7 | ||
| Attachments: | patch to enable SDL_GL_GetProcAddress | ||
this fix doesn't work when I go back to win7 seems CreateWindow fails on both win7 and win8 inside WIN_GL_InitExtensions if I share the hwnd from the caller then SetPixelFormat fails - I think it can only be called once so either need to reorganize this code or work out why createwindow fails does anyone else see this fail ? I see it on 3 different windows installs with latest SDL - so seems it's been broken for a while tx neil Ryan, I think this needs to be fixed for 2.0.4, can you look at it? (In reply to Sam Lantinga from comment #2) > Ryan, I think this needs to be fixed for 2.0.4, can you look at it? Checking this. --ryan. (In reply to Ryan C. Gordon from comment #3) > (In reply to Sam Lantinga from comment #2) > > Ryan, I think this needs to be fixed for 2.0.4, can you look at it? > > Checking this. This isn't failing for me on Win10 with an Nvidia GPU. goblin hack: can you give me more info? What GPU are you using? Is this a core context, etc? Is this on the program's main thread? A different thread than called SDL_Init()? Can you send me a small source example that triggers the bug? I'm just using SDL's testgl2.c program. (I also see no reason why the CreateWindow call in WIN_GL_InitExtensions() would fail unless there was some radical problem like an unfortunate memory corruption somewhere else, etc.) --ryan.
> This isn't failing for me on Win10 with an Nvidia GPU.
(Just realized this bug report is over a year old...maybe we fixed it already? Checking now.)
--ryan.
> (Just realized this bug report is over a year old...maybe we fixed it
> already? Checking now.)
(Syncing back to 2015-07-28 in revision control doesn't change anything here. Still works as expected on my machine.)
--ryan.
Closing this bug as WORKSFORME. Please feel free to reopen it if you are still seeing this issue, and we can try to find a reproduction case! --ryan. |
Created attachment 2229 [details] patch to enable SDL_GL_GetProcAddress Hi, all my calls to SDL_GL_GetProcAddress were failing and I tracked it down to CreateWindow failing in WIN_GL_InitExtensions. Trying to find the error with GetLastError() gave a null pointer. Swapping each of the arguments for the same values used in the already successful CreateWindow call in the parent routine also failed. The win proc function was not even being called in this case and no clue as to what the winapi did not like. In the end I gave up and thought about just passing the hwnd in from the parent function instead of creating a temporary window. This worked. I saw this bug on a win7 box and win8; and you only see it if you are trying to say look up some extensions like render buffer routines. patch attached hope this helps someone neil