Comments (6)
@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
from pygame.
@illume I tried your patch, and it works.
I will keep it until pygame fix the regression.
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.
If I see it, I will forward it to you.
from pygame.
Thanks for the good reproducer.
Note, I can't reproduce on Ubuntu 22.04. Maybe it's specific to the Windows driver.
from pygame.
I tested you script, and I can confirm, it breaks on my computer too (I uncommented the assert).
Both on:
- Windows7
- Python 3.10.7
- SDL 2.28.3
- Pygame 2.5.2
And:
- Windows7
- Python3.10.7
- SDL 2.26.4
- Pygame 2.4.0
But "funny" enough, I am using Pygame 2.4.0 because 2.5.x breaks the 'set_mode()' flags.
More precisely, the very useful pygame.SCALED is broken...
from pygame.
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()
pygame.display.init()
pygame.display.set_mode()
from pygame.
@TheDarkTiger do you know if there's already an issue about that SCALED thing? If so, can you please ping me on that issue?
from pygame.
Related Issues (20)
- Bug about pygame.draw.polygon() HOT 9
- Pygame Keyboard Event Handling Not Working with ALE Environment in WSL 2
- KEYDOWN监听不到字母 HOT 1
- I get an error when I log out of my game: (line 145 pygame.display.update(); pygame.error: video system not initialized) HOT 1
- Some SVGs don't display correctly HOT 2
- Segfault when _sdl2.Renderer gets garbage collected after window has been destroyed
- Pygame.mixer module not available? HOT 1
- Program causing Mac OS to freeze HOT 3
- litta
- Pygame fails to compile with GCC-14 HOT 4
- Deload a pygame.image HOT 1
- i keep on getting the following error on this code i found which is using pygame to control a RC car Traceback (most recent call last): line 27, in <module> main() , line 20, in main if getKey('LEFT'): line 9, in getKey for eve in pygame.event.get(): ^^^^^^^^^^^^^^^^^^ pygame.error: video system not initialized >>> HOT 7
- Inconsistent resize behavior w.r.t. pygame.SCALED
- Test failures against NumPy 2.0.0rc2 HOT 9
- Improve Pygame Installation Instructions
- Improve Pygame Installation Instructions
- Flicker Screen
- Mouse cannot focus on vscode when breakpoint on Ubuntu when mouse pressed HOT 1
- Juego autista
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pygame.