From 6083534cd846eda51cc8664447ba1490837fd5e3 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sun, 17 Oct 2021 01:20:54 +0200 Subject: Reset texture size on deinit --- src/graphics/texture.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3