mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 07:07:42 +00:00
CTextRenderBuffer: Remove use of const_cast within Render()
Same behavior but way less casting.
This commit is contained in:
@@ -186,8 +186,8 @@ void CGuiTextSupport::AutoSetExtent() {
|
||||
x38_extentY = bounds.second.y;
|
||||
}
|
||||
|
||||
void CGuiTextSupport::Render() const {
|
||||
const_cast<CGuiTextSupport*>(this)->CheckAndRebuildRenderBuffer();
|
||||
void CGuiTextSupport::Render() {
|
||||
CheckAndRebuildRenderBuffer();
|
||||
if (CTextRenderBuffer* buf = GetCurrentPageRenderBuffer()) {
|
||||
SCOPED_GRAPHICS_DEBUG_GROUP("CGuiTextSupport::Draw", zeus::skBlue);
|
||||
zeus::CTransform oldModel = CGraphics::g_GXModelMatrix;
|
||||
|
||||
Reference in New Issue
Block a user