projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of harrygodden.com:/home/carveJwlIkooP6JGAAIwe30JlM
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_load.c
diff --git
a/world_load.c
b/world_load.c
index 3dce0288024f76612b89a65502d1d5b60ceef2b2..5ab2dfb0793e80ce9e5670bd0b4e055fbba5ac83 100644
(file)
--- 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( 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 ){
u32 world_index = world - world_static.instances;
if( world_index ){