Dang...
I was just using gfx_sdl2 on Linux and found that it was crashing a lot all 
over the place (memory corruption) when resizing the window, and crashing 
faster the larger you resize the window. At first I thought that this bug 
(1181) was maybe gfx_sdl2/x86_64 specific, not Mac-specific. Eventually I 
discovered that the crash was because in `present_internal` in gfx_sdl2, 
`imagesz` was not equal to `buffersize` and `screenbuffer` during a resize.

But the crash went away when I recompiled, and I realised that my previous 
build just so happened to be performed on a temp git branch I had used under 
Mac while hunting this bug (1181). Examining the branch, I see I had commented 
out `set_window_size(imagesz, zoom)` in `present_internal`, explaining the 
mismatched sizes.

But... the whole reason I commented out that line was to experiment with the 
cause of this bug... maybe I had transformed a rare crash into a frequent one? 
I need to re-test on Mac.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1181#issuecomment-729440686
_______________________________________________
Ohrrpgce mailing list
ohrrpgce@lists.motherhamster.org
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org

Reply via email to