Skip to content

Commit

Permalink
Enable FFP in blenders if FFP switch is on
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Apr 22, 2023
1 parent 45bed2a commit e426215
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/Layers/xrRender/Blender_Recorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -306,13 +306,8 @@ void CBlender_Compile::StageSET_Address(u32 adr)
}
void CBlender_Compile::StageSET_XForm(u32 tf, u32 tc)
{
#ifdef _EDITOR
RS.SetTSS(Stage(), D3DTSS_TEXTURETRANSFORMFLAGS, tf);
RS.SetTSS(Stage(), D3DTSS_TEXCOORDINDEX, tc);
#else
UNUSED(tf);
UNUSED(tc);
#endif
}
void CBlender_Compile::StageSET_Color(u32 a1, u32 op, u32 a2) { RS.SetColor(Stage(), a1, op, a2); }
void CBlender_Compile::StageSET_Color3(u32 a1, u32 op, u32 a2, u32 a3) { RS.SetColor3(Stage(), a1, op, a2, a3); }
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/ResourceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Shader* CResourceManager::_cpp_Create(

// Access to template
C.BT = B;
C.bFFP = false;
C.bFFP = RImplementation.o.ffp;
C.bEditor = false;
C.bDetail = FALSE;
#ifdef _EDITOR
Expand Down

1 comment on commit e426215

@Xottab-DUTY
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.