mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
Mark iqm models as need-load when clearing.
This fixes the segfault on map change.
This commit is contained in:
parent
0fd2b01665
commit
5740dba467
1 changed files with 2 additions and 0 deletions
|
@ -74,6 +74,8 @@ glsl_iqm_clear (model_t *mod)
|
||||||
glsliqm_t *glsl = (glsliqm_t *) iqm->extra_data;
|
glsliqm_t *glsl = (glsliqm_t *) iqm->extra_data;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
mod->needload = true;
|
||||||
|
|
||||||
for (i = 0; i < iqm->num_meshes; i++) {
|
for (i = 0; i < iqm->num_meshes; i++) {
|
||||||
GLSL_ReleaseTexture (glsl->textures[i]);
|
GLSL_ReleaseTexture (glsl->textures[i]);
|
||||||
GLSL_ReleaseTexture (glsl->normmaps[i]);
|
GLSL_ReleaseTexture (glsl->normmaps[i]);
|
||||||
|
|
Loading…
Reference in a new issue