However, using LIBGL_ALWAYS_SOFTWARE=1 configuration option workarounds the issue (probably because it uses OpenGL 3.1 software rendering).
The only and last option that I have is to post it here in the forums. Do you have any idea of what could be done to solve this issue?
Thanks in advance.
P.S.: I’m not very familiar with SDL internals, so any help or guidance will be very appreciated!
I don’t see what this has to do with SDL. It’s clear from the error message that the game is creating a texture with dimensions bigger than 2048 pixels, which the underlying hardware doesn’t support.
The other errors look like cascade errors: the texture can’t be created because it’s too big, so the other functions that need that texture fail.
(It’s also possible the texture creation fails if the game is trying to create textures with non-power-of-two dimensions on old hardware that only supports textures with power-of-two dimensions, ie 64, 128, 256, etc)
The other errors look like cascade errors: the texture can’t be created because it’s too big, so the other functions that need that texture fail.
I see. I haven’t considered those were cascade errors, thank you! This might be it.
(It’s also possible the texture creation fails if the game is trying to create textures with non-power-of-two dimensions on old hardware that only supports textures with power-of-two dimensions, ie 64, 128, 256, etc)
Thank you very much for the info!
I don’t see what this has to do with SDL. It’s clear from the error message that the game is creating a texture with dimensions bigger than 2048 pixels, which the underlying hardware doesn’t support.
I can confirm, I’ve tested another different SDL2 game (also with textures and shadows) and seems that the issue is gone, so you have a point, it’s from the game itself
P.S.: Looking at the sources, seems that the game uses high-quality resolution images. Maybe lowering them a little bit can solve render problems.
As far as I know, this game is made purely in SDL2. So yes, it has an OpenGL 1.x backend and it renders quite well actually or at least for simple games with basic shadows.