update sdl and sdl_image again (contains v4l2 fix)

This commit is contained in:
2024-09-19 14:01:47 +02:00
parent 6af0ddc3ec
commit 557a642ad3
5 changed files with 14 additions and 12 deletions

View File

@ -56,7 +56,7 @@ bool SDLRendererTextureUploader::updateRGBA(uint64_t tex_id, const uint8_t* data
uint8_t* pixels = nullptr;
int pitch = 0;
if (SDL_LockTexture(texture, nullptr, (void**)&pixels, &pitch) != 0) {
if (!SDL_LockTexture(texture, nullptr, (void**)&pixels, &pitch)) {
std::cerr << "SDLRTU error: failed locking texture '" << SDL_GetError() << "'\n";
return false;
}