Skip to content

Commit

Permalink
Fix R3/R4 compile shader name calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
fedan committed Jan 29, 2016
1 parent 5c24837 commit 289238c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R3/r3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ HRESULT CRender::shader_compile (
defines[def_it].Definition = "1";
def_it++;
}
sh_name[len]='0'+0*char(o.dx10_sm4_1); ++len;
sh_name[len]='0'+char(o.dx10_sm4_1); ++len;

if (o.dx10_minmax_sm)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R4/r4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1318,7 +1318,7 @@ HRESULT CRender::shader_compile (
defines[def_it].Definition = "1";
def_it++;
}
sh_name[len]='0'+0*char(o.dx10_sm4_1); ++len;
sh_name[len]='0'+char(o.dx10_sm4_1); ++len;

R_ASSERT ( HW.FeatureLevel>=D3D_FEATURE_LEVEL_11_0 );
if( HW.FeatureLevel>=D3D_FEATURE_LEVEL_11_0 )
Expand Down

0 comments on commit 289238c

Please sign in to comment.