diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-10-17 01:20:54 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-10-17 01:20:54 +0200 |
commit | 6083534cd846eda51cc8664447ba1490837fd5e3 (patch) | |
tree | 1e27dbdd7d977d12eea2734265206eaf9a0debf9 /src | |
parent | 0de688131afa93ca863fa05947221a6fb69d3a3a (diff) |
Reset texture size on deinit
Diffstat (limited to 'src')
-rw-r--r-- | src/graphics/texture.c | 3 |
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; } |