mirror of https://github.com/AxioDL/metaforce.git
CGuiTextPane: Remove stray unnecessary const_cast in Draw()
Draw() isn't const qualified, so there's no need to cast away const here.
This commit is contained in:
parent
1d725587e5
commit
f3afcf7299
|
@ -100,8 +100,7 @@ void CGuiTextPane::Draw(const CGuiWidgetDrawParms& parms) {
|
||||||
CGraphics::SetBlendMode(ERglBlendMode::Blend, ERglBlendFactor::SrcAlpha,
|
CGraphics::SetBlendMode(ERglBlendMode::Blend, ERglBlendFactor::SrcAlpha,
|
||||||
ERglBlendFactor::InvSrcAlpha, ERglLogicOp::Clear);
|
ERglBlendFactor::InvSrcAlpha, ERglLogicOp::Clear);
|
||||||
xd4_textSupport.Render();
|
xd4_textSupport.Render();
|
||||||
const_cast<CGuiTextPane*>(this)->xd4_textSupport.SetGeometryColor
|
xd4_textSupport.SetGeometryColor(geomCol * zeus::CColor(geomCol.a, geomCol.a, geomCol.a, 1.f));
|
||||||
(geomCol * zeus::CColor(geomCol.a, geomCol.a, geomCol.a, 1.f));
|
|
||||||
CGraphics::SetBlendMode(ERglBlendMode::Blend, ERglBlendFactor::One,
|
CGraphics::SetBlendMode(ERglBlendMode::Blend, ERglBlendFactor::One,
|
||||||
ERglBlendFactor::One, ERglLogicOp::Clear);
|
ERglBlendFactor::One, ERglLogicOp::Clear);
|
||||||
xd4_textSupport.Render();
|
xd4_textSupport.Render();
|
||||||
|
|
Loading…
Reference in New Issue