-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
set_mode()
wont change the graphics mode the second time when OPENGL flag is used
#4224
Comments
Thanks for the good reproducer. Note, I can't reproduce on Ubuntu 22.04. Maybe it's specific to the Windows driver. |
I tested you script, and I can confirm, it breaks on my computer too (I uncommented the assert).
And:
But "funny" enough, I am using Pygame 2.4.0 because 2.5.x breaks the 'set_mode()' flags. |
One thing is windows opengl has this quirk where you need to redo all of the textures and such when you get a new window. I'm not sure if it's related to that. Probably you already know this, but as a work around you should be able to do: pygame.display.quit() |
@TheDarkTiger do you know if there's already an issue about that SCALED thing? If so, can you please ping me on that issue? |
@illume I imagine thats related, however afaik pygame is not storing textures in vram so it do not need to asumme an special behavior. However, thanks for your workaround it will work for me for now |
@illume I tried your patch, and it works. Also, I looked a bit, but I will be honest, I didn't search for very long if the SCALED issue was opened somewhere else. |
Environment:
You can get some of this info from the text that pops up in the console when you run a pygame program.
Current behavior:
When the OPENGL flag is used, the
set_mode()
wont change the graphics mode after the first time is used.Expected behavior:
set_mode()
should change the graphics mode all the times irrespective of the OPENGL flag use.Steps to reproduce:
Use the test code and run
Test code
If possible add a simple test program that shows the problem described in this report.
** output error **
The text was updated successfully, but these errors were encountered: