mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-24 20:51:35 +00:00
[iqm] Make the null texture static
That was a nasty bit of UB that wasn't discovered until Tracy affected the stack, I guess (maybe because of the cleanup attribute).
This commit is contained in:
parent
010c658653
commit
514bb30655
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ vulkan_iqm_load_textures (model_t *mod, iqm_t *iqm, qfv_iqm_t *mesh,
|
|||
dstring_copystr (str, iqm->text + iqm->meshes[i].material);
|
||||
QFS_StripExtension (str->str, str->str);
|
||||
if (!(tex = LoadImage (va (0, "textures/%s", str->str), 1))) {
|
||||
tex_t null_tex = {
|
||||
static tex_t null_tex = {
|
||||
.width = 2,
|
||||
.height = 2,
|
||||
.format = tex_rgba,
|
||||
|
|
Loading…
Reference in a new issue