mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
[model] Handle brush models with empty texture slots
It seems some maps have some empty texture slots (eg, e1m2).
This commit is contained in:
parent
0a79348ce9
commit
7650df3400
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ Mod_LoadTextures (model_t *mod, bsp_t *bsp)
|
|||
mod->name);
|
||||
}
|
||||
for (i = 0; i < m->nummiptex; i++) {
|
||||
tx = brush->textures[i];
|
||||
if (!(tx = brush->textures[i])) {
|
||||
continue;
|
||||
}
|
||||
tx->render = render_data;
|
||||
render_data += render_size;
|
||||
mod_funcs->Mod_ProcessTexture (mod, tx);
|
||||
|
|
Loading…
Reference in a new issue