diff --git a/texture.cpp b/texture.cpp index dd7c064..37e29bd 100755 --- a/texture.cpp +++ b/texture.cpp @@ -61,6 +61,8 @@ namespace vb01{ } void Texture::loadImageData(ImageAsset *asset, int i){ + glDeleteTextures(1, &texture[i]); + width = asset->width; height = asset->height;