Giter VIP home page Giter VIP logo

Comments (6)

jairov4 avatar jairov4 commented on June 15, 2024 1

@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.

TheDarkTiger avatar TheDarkTiger commented on June 15, 2024 1

@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.

illume avatar illume commented on June 15, 2024

Thanks for the good reproducer.

Note, I can't reproduce on Ubuntu 22.04. Maybe it's specific to the Windows driver.

from pygame.

TheDarkTiger avatar TheDarkTiger commented on June 15, 2024

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.

illume avatar illume commented on June 15, 2024

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.

illume avatar illume commented on June 15, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.