Skip to content

Commit

Permalink
Added earlier VERIFY checks for texture names to [sic] "uber_deffer".
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlin-mike authored and Xottab-DUTY committed Aug 5, 2017
1 parent 0c055a7 commit 56d8280
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Layers/xrRender/uber_deffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ void uber_deffer(CBlender_Compile& C, bool hq, LPCSTR _vspec, LPCSTR _pspec, BOO
bHasDetailBump = true;
xr_strcpy(texDetailBump, sizeof(texDetailBump), detail_bump_texture);
xr_strcpy(texDetailBumpX, sizeof(texDetailBumpX), detail_bump_texture);
VERIFY(xr_strlen(texDetailBump) > 2);
VERIFY(xr_strlen(texDetailBumpX) > 2);
xr_strcat(texDetailBumpX, "#");
}
}
Expand Down Expand Up @@ -185,6 +187,8 @@ void uber_deffer(CBlender_Compile& C, bool hq, LPCSTR _vspec, LPCSTR _pspec, BOO
{
C.r_dx10Texture("s_detailBump", texDetailBump);
C.r_dx10Texture("s_detailBumpX", texDetailBumpX);
VERIFY(xr_strlen(texDetailBump) > 2);
VERIFY(xr_strlen(texDetailBumpX) > 2);
}
C.r_dx10Sampler("smp_base");
if (lmap)
Expand Down

0 comments on commit 56d8280

Please sign in to comment.