Open damusss opened 3 weeks ago
I suspect the circleCI failure is unrelated to your changes, looks like it's unable to download the SDL2 dependency. I'm going to wait a while before rerunning it
@oddbookworm Alright, I managed to make glViewport
static and I added exceptions to my new function. To note that the window is still resized even if there are problems with opengl, so you could do something like
On the event watch, I cleared the errors as I don't know how to stop the python execution with an exception from there. It also seems that another check (for the surface) is returning early without an exception aswell, so I followed the same trend.
Tell me what you think :)
Fixes https://github.com/pygame-community/pygame-ce/issues/2877 The documentation has been updated by MyreMylar already.
As stated in the issue, the newly functional OpenGL
Window
s, unlike the display windows, would not resize the OpenGL viewport causing bugs and inconsistencies.With the addition of a function, used both in the event watch and in the
set_size
function, the OpenGl viewport is now correctly updated. I tested locally, it works for fullscreen/maximization/autoresize/manualresize.If it works for you too (should, it's identical to the display's one), I think this should be added not later than 2.5.1