aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/graphics/texture.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/graphics/texture.c b/src/graphics/texture.c
index 383f3f8..4c7f68c 100644
--- a/src/graphics/texture.c
+++ b/src/graphics/texture.c
@@ -123,4 +123,7 @@ void mgl_texture_unload(mgl_texture *self) {
context->gl.glDeleteTextures(1, &self->id);
self->id = 0;
}
+ self->width = 0;
+ self->height = 0;
+ self->format = 0;
}