Skip to content

Commit

Permalink
Merge pull request #120 from fedan/feature/dx11
Browse files Browse the repository at this point in the history
Fix R3/R4 compile shader name calculation.
  • Loading branch information
Pavel Kovalenko committed Jan 29, 2016
2 parents f4df0c9 + 289238c commit a543940
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 a543940

Please sign in to comment.