Arreglos varios al codi
This commit is contained in:
@@ -12,11 +12,8 @@
|
||||
|
||||
// Constructor
|
||||
Texture::Texture(SDL_Renderer *renderer, std::string path)
|
||||
: renderer(renderer), path(path)
|
||||
{
|
||||
// Copia punteros
|
||||
this->renderer = renderer;
|
||||
this->path = path;
|
||||
|
||||
// Inicializa
|
||||
surface = nullptr;
|
||||
texture = nullptr;
|
||||
@@ -53,7 +50,6 @@ Texture::Texture(SDL_Renderer *renderer, std::string path)
|
||||
// Destructor
|
||||
Texture::~Texture()
|
||||
{
|
||||
// Libera memoria
|
||||
unload();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user