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

Fix a bug in the OpenGL backend that causes win32 errors not to be logged #8214 #8216

Merged
merged 3 commits into from
Oct 21, 2024

Conversation

emezeske
Copy link
Contributor

As you might imagine, I am submitting this change because I'm debugging a bug in the openGL backend, specifically one that causes PlatformWGL::makeCurrent() to fail if the swap chain is removed and created too many times. I hope that I can figure out the issue there, but if someone more familiar with this code could figure it out, that would be really cool... (If anyone is curious, wglMakeCurrent() is returning win32 error code 6.)

…tions are called in order to log it correctly. Prior to this change, intervening win32 API calls could clear the error code and it would not be logged.
@emezeske
Copy link
Contributor Author

FWIW in this particular case the bug causing PlatformWGL::makeCurrent() to fail was in my code. :D But this CL helped me figure that out by logging the windows errors correctly, so it's definitely worth submitting.

@pixelflinger pixelflinger added the internal Issue/PR does not affect clients label Oct 18, 2024
@romainguy romainguy merged commit edece8f into google:main Oct 21, 2024
9 checks passed
@emezeske
Copy link
Contributor Author

Thanks again, folks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants