Actualizadas las librerias comunes

This commit is contained in:
2022-12-05 09:55:15 +01:00
parent 09a205a288
commit a32582f1ec
11 changed files with 86 additions and 74 deletions

View File

@@ -92,7 +92,8 @@ bool Texture::loadFromFile(std::string path, SDL_Renderer *renderer)
SDL_FreeSurface(loadedSurface);
}
// Return success
// Devuelve el resultado
stbi_image_free(data);
texture = newTexture;
return texture != nullptr;
}