Mark iqm models as need-load when clearing.

This fixes the segfault on map change.
This commit is contained in:
Bill Currie 2012-05-15 08:21:23 +09:00
parent 0fd2b01665
commit 5740dba467
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ glsl_iqm_clear (model_t *mod)
glsliqm_t *glsl = (glsliqm_t *) iqm->extra_data;
int i;
mod->needload = true;
for (i = 0; i < iqm->num_meshes; i++) {
GLSL_ReleaseTexture (glsl->textures[i]);
GLSL_ReleaseTexture (glsl->normmaps[i]);