class CGraphics_ThreadedNull : public IEngineGraphics
{
}
class CGraphics_Threaded : public IEngineGraphics
{
enu
#ifdef CONF_HEADLESS
extern IEngineGraphics *CreateEngineGraphicsThreaded() { return new CGraphics_ThreadedNull(); }
#else
extern IEngineGraphics *CreateEngineGraphicsThreaded() { return new CGraphics_Threaded(); }
#endif
Is*BufferingEnabled
as false, it shouldnt even create those buffers, and textures seem to be alloced by that class==84133== at 0x1DDF7E: float maximum<float>(float, float) (math.h:103)
==84133== by 0x1E3CE5: CTextRender::TextEx(CTextCursor*, char const*, int) (text.cpp:1064)
==84133== by 0x1E28F7: CTextRender::Text(void*, float, float, float, char const*, float) (text.cpp:797)
==84133== by 0x303F3E: CUI::DoLabel(CUIRect const*, char const*, float, int, float, int) (ui.cpp:462)
==84133== by 0x2595C7: CMenus::RenderLoading() (menus.cpp:1141)
==84133== by 0x2C2DF1: CSoundLoading::Run() (sounds.cpp:32)
==84133== by 0x2C321A: CSounds::OnInit() (sounds.cpp:85)
==84133== by 0x2CEC57: CGameClient::OnInit() (gameclient.cpp:248)
==84133== by 0x17B04A: CClient::Run() (client.cpp:3115)
==84133== by 0x182310: main (client.cpp:4453)
pCursor->m_MaxCharacterHeight = maximum(pCursor->m_MaxCharacterHeight, CharHeight + BearingY);
CTextCursor Cursor;
SetCursor(&Cursor, x, y, Size, TEXTFLAG_RENDER);
Cursor.m_LineWidth = LineWidth;
int OldRenderFlags = m_RenderFlags;
if(LineWidth <= 0)
SetRenderFlags(OldRenderFlags | ETextRenderFlags::TEXT_RENDER_FLAG_NO_FIRST_CHARACTER_X_BEARING | ETextRenderFlags::TEXT_RENDER_FLAG_NO_LAST_CHARACTER_ADVANCE);
TextEx(&Cursor, pText, -1);
*pTopLeftX = 0;
*pTopLeftY =0;
*pBottomRightX = 800;
*pBottomRightY = 600;
int m_ScreenWidth;
int m_ScreenHeight;
int m_ScreenRefreshRate;
float m_ScreenHiDPIScale;
}\x00