-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 #22316: Always recreate the window when changing drawing engine #22522
Conversation
@Basssiiie Does this fix the problem for you? |
I have no crashes anymore when switching drawing engines in this build. 🙂 I do get this new stdout error on launch if my drawing engine is set to OpenGL, and occasionally when switching to OpenGL from another drawing engine as well, which I haven't seen before:
|
I get that error on startup, but also on |
I will have to look into what that error is about, it doesn't seem like there is anything wrong tho. |
Do you want to address that in this PR or in another? Since it happens on |
The error must be quite recent then (~ maybe added past week) because I had not seen it before. 😯 |
The place where it checks the error is not the actual place where the error is generated, this needs a bit of digging to what specific OpenGL API calls causes that error so I think its best to ignore it for the time being, it might be something related to the line drawing. I think we can merge this as is as the error is not persistent and isn't coming from this PR. |
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.
In that case, LGTM!
We have to always create a new window as SDL has some lingering state left on it even when if we free all SDL related handles.
Closes #22316