Skip to content

Commit f51a80b

Browse files
temxNovum
authored andcommitted
Direct path: draw checkerboard for missing textures
Matches QuakeSpasm (R_DrawTextureChains_NoTexture) and indirect path
1 parent cd897da commit f51a80b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Quake/r_world.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void R_SetupWorldCBXTexRanges (qboolean use_tasks)
160160
for (int i = 0; i < num_textures; ++i)
161161
{
162162
texture_t *t = cl.worldmodel->textures[i];
163-
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED | SURF_NOTEXTURE))
163+
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED))
164164
continue;
165165
total_world_surfs += t->chain_size[chain_world];
166166
}
@@ -171,7 +171,7 @@ void R_SetupWorldCBXTexRanges (qboolean use_tasks)
171171
for (int i = 0; i < num_textures; ++i)
172172
{
173173
texture_t *t = cl.worldmodel->textures[i];
174-
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED | SURF_NOTEXTURE))
174+
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED))
175175
continue;
176176
assert (current_cbx < NUM_WORLD_CBX);
177177
world_texend[current_cbx] = i + 1;
@@ -1154,7 +1154,7 @@ void R_DrawTextureChains_Multitexture (cb_context_t *cbx, qmodel_t *model, entit
11541154
{
11551155
t = model->textures[i];
11561156

1157-
if (!t || !t->texturechains[chain] || t->texturechains[chain]->flags & (SURF_DRAWTURB | SURF_DRAWTILED | SURF_NOTEXTURE))
1157+
if (!t || !t->texturechains[chain] || t->texturechains[chain]->flags & (SURF_DRAWTURB | SURF_DRAWTILED))
11581158
continue;
11591159

11601160
if (gl_fullbrights.value && (fullbright = R_TextureAnimation (t, ent_frame)->fullbright) && !r_lightmap_cheatsafe)

0 commit comments

Comments
 (0)