aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-10-17 01:20:54 +0200
committerdec05eba <dec05eba@protonmail.com>2021-10-17 01:20:54 +0200
commit6083534cd846eda51cc8664447ba1490837fd5e3 (patch)
tree1e27dbdd7d977d12eea2734265206eaf9a0debf9 /src
parent0de688131afa93ca863fa05947221a6fb69d3a3a (diff)
Reset texture size on deinit
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;
}