Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

segmentation fault on SDL_SetTextureScaleMode #1

Open
greenaddress opened this issue May 29, 2024 · 2 comments
Open

segmentation fault on SDL_SetTextureScaleMode #1

greenaddress opened this issue May 29, 2024 · 2 comments
Assignees
Labels
bug Something isn't working frontend

Comments

@greenaddress
Copy link

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

Using master (w/ head commit 7f9fc68)

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.

@allkern
Copy link
Owner

allkern commented Jun 1, 2024

First of all, thank you for taking the time to diagnose this!

Support for SetTextureScaleMode seems to be somewhat hit-or-miss. It's only been available since SDL 2.0.12 (I had to set up checks for older versions) so this might be either an SDL issue, or a driver issue with your specific distro. I'll look into this anyways, if you could provide more OS info that would be appreciated.

@allkern allkern self-assigned this Jun 1, 2024
@allkern allkern added bug Something isn't working frontend labels Jun 1, 2024
@greenaddress
Copy link
Author

kernel 5.10.0-29-amd64 #1 SMP Debian 5.10.216-1 (2024-05-03)
intel embedded gpu
vanilla debian bullseye install with gnome

sdl installed (2.0.14)

What else could help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

No branches or pull requests

2 participants