X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_load.c;fp=world_load.c;h=5ab2dfb0793e80ce9e5670bd0b4e055fbba5ac83;hb=2dbc6f4022802b89c934ba78e7085cc7ee81799b;hp=3dce0288024f76612b89a65502d1d5b60ceef2b2;hpb=47bdc07d1a3e268f7926b5849ea751b0ef63289b;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 ){