diff options
Diffstat (limited to 'src/game/client/mapres_tilemap.cpp')
| -rw-r--r-- | src/game/client/mapres_tilemap.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game/client/mapres_tilemap.cpp b/src/game/client/mapres_tilemap.cpp index f1f29d8f..3b2a5006 100644 --- a/src/game/client/mapres_tilemap.cpp +++ b/src/game/client/mapres_tilemap.cpp @@ -5,12 +5,16 @@ #include <baselib/opengl.h> -bool must_init = true; void *batches[32] = {0}; int tilemap_init() { - must_init = true; + for(int i = 0; i < 32; i++) + if(batches[i]) + { + gfx_destoy_batch(batches[i]); + batches[i] = 0; + } return 0; } |