mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-04 23:15:52 +00:00
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,
|
||||
ERglBlendFactor::InvSrcAlpha, ERglLogicOp::Clear);
|
||||
xd4_textSupport.Render();
|
||||
const_cast<CGuiTextPane*>(this)->xd4_textSupport.SetGeometryColor
|
||||
(geomCol * zeus::CColor(geomCol.a, geomCol.a, geomCol.a, 1.f));
|
||||
xd4_textSupport.SetGeometryColor(geomCol * zeus::CColor(geomCol.a, geomCol.a, geomCol.a, 1.f));
|
||||
CGraphics::SetBlendMode(ERglBlendMode::Blend, ERglBlendFactor::One,
|
||||
ERglBlendFactor::One, ERglLogicOp::Clear);
|
||||
xd4_textSupport.Render();
|
||||
|
Loading…
x
Reference in New Issue
Block a user