Skip to content

Commit

Permalink
Direct path: draw checkerboard for missing textures
Browse files Browse the repository at this point in the history
Matches QuakeSpasm (R_DrawTextureChains_NoTexture) and indirect path
  • Loading branch information
temx authored and Novum committed Jan 4, 2023
1 parent cd897da commit f51a80b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Quake/r_world.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void R_SetupWorldCBXTexRanges (qboolean use_tasks)
for (int i = 0; i < num_textures; ++i)
{
texture_t *t = cl.worldmodel->textures[i];
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED | SURF_NOTEXTURE))
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED))
continue;
total_world_surfs += t->chain_size[chain_world];
}
Expand All @@ -171,7 +171,7 @@ void R_SetupWorldCBXTexRanges (qboolean use_tasks)
for (int i = 0; i < num_textures; ++i)
{
texture_t *t = cl.worldmodel->textures[i];
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED | SURF_NOTEXTURE))
if (!t || !t->texturechains[chain_world] || t->texturechains[chain_world]->flags & (SURF_DRAWTURB | SURF_DRAWTILED))
continue;
assert (current_cbx < NUM_WORLD_CBX);
world_texend[current_cbx] = i + 1;
Expand Down Expand Up @@ -1154,7 +1154,7 @@ void R_DrawTextureChains_Multitexture (cb_context_t *cbx, qmodel_t *model, entit
{
t = model->textures[i];

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

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

0 comments on commit f51a80b

Please sign in to comment.