Segmentation fault

This commit is contained in:
2023-05-07 18:08:36 +02:00
parent 90ebea4807
commit c1f8e16963
17 changed files with 163 additions and 73 deletions

View File

@@ -7,6 +7,7 @@
// Constructor
Texture::Texture(SDL_Renderer *renderer, std::string path, bool verbose)
{
//std::cout << "Construido Texture" << std::endl;
// Copia punteros
this->renderer = renderer;
this->path = path;
@@ -26,6 +27,8 @@ Texture::Texture(SDL_Renderer *renderer, std::string path, bool verbose)
// Destructor
Texture::~Texture()
{
//std::cout << "Destruido Texture" << std::endl;
// Libera memoria
unload();
}