X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_load.c;h=5ab2dfb0793e80ce9e5670bd0b4e055fbba5ac83;hb=6e6c7f31b8f17af3814727109e48fc6f85ef04b1;hp=3dce0288024f76612b89a65502d1d5b60ceef2b2;hpb=2c38f7b8f422374c4c46c5b636a7275b61876192;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_load.c b/world_load.c index 3dce028..5ab2dfb 100644 --- a/world_load.c +++ b/world_load.c @@ -412,7 +412,7 @@ static void world_free( world_instance *world ){ glDeleteTextures( 1, &world->tex_light_cubes ); /* delete textures and meshes */ - glDeleteTextures( world->texture_count, world->textures ); + glDeleteTextures( world->texture_count-1, world->textures+1 ); u32 world_index = world - world_static.instances; if( world_index ){