update sdl and sdl_image to latest

This commit is contained in:
2024-09-09 11:49:32 +02:00
parent 4b9fd6db81
commit 3b399fec5c
6 changed files with 22 additions and 20 deletions

View File

@ -52,7 +52,7 @@ ImageLoaderSDLBMP::ImageResult ImageLoaderSDLBMP::loadFromMemoryRGBA(const uint8
ImageResult res;
if (SDL_MUSTLOCK(conv_surf)) {
if (SDL_LockSurface(conv_surf) < 0) {
if (!SDL_LockSurface(conv_surf)) {
std::cerr << "IL_SDLBMP error: " << SDL_GetError() << "\n";
SDL_DestroySurface(conv_surf);
return {};