psxe icon indicating copy to clipboard operation
psxe copied to clipboard

segmentation fault on SDL_SetTextureScaleMode

Open greenaddress opened this issue 1 year ago • 2 comments

Very nice project! I was playing with it and encountered a seg fault

Using master (w/ head commit 7f9fc68a99d1056963e74a37e921d449a3c99cca)

on Debian Bullseye which has SDL 2.0.14 I hit a segmentation fault on

 SDL_SetTextureScaleMode(screen->texture, screen->bilinear);                 

I checked and screen is not NULL, texture is not NULL and bilinear is set to 0 - everything else in terms of window/texture/etc seemed fine so not sure what the issue is.

If I uncomment the first one i hit the second one. if i uncomment both everything seems to run ok.

greenaddress avatar May 29 '24 13:05 greenaddress