Commit 6a44346c authored by Alexey Hohlov's avatar Alexey Hohlov
Browse files

Удаление битмапа текстуры.

parent 9203c5c0
......@@ -47,6 +47,7 @@ Texture LoadSpr(std::string filename)
void DeleteSpr(Texture *spr)
{
glDeleteTextures(1, &spr->texID);
free(spr->imageData);
delete spr;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment