From 18b92aaeb615378fb288264234e94c67cbf7655e Mon Sep 17 00:00:00 2001 From: d1str4ught <> Date: Sat, 23 Aug 2025 03:04:10 +0200 Subject: [PATCH] multisample antialiasin turned off for UI rendering --- src/EterPythonLib/PythonGraphic.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EterPythonLib/PythonGraphic.cpp b/src/EterPythonLib/PythonGraphic.cpp index 34e4c37..98a9d66 100644 --- a/src/EterPythonLib/PythonGraphic.cpp +++ b/src/EterPythonLib/PythonGraphic.cpp @@ -32,6 +32,7 @@ void CPythonGraphic::SetInterfaceRenderState() STATEMANAGER.SetRenderState(D3DRS_ALPHABLENDENABLE, TRUE); STATEMANAGER.SetRenderState(D3DRS_SRCBLEND, D3DBLEND_SRCALPHA); STATEMANAGER.SetRenderState(D3DRS_DESTBLEND, D3DBLEND_INVSRCALPHA); + STATEMANAGER.SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, FALSE); CPythonGraphic::Instance().SetBlendOperation(); CPythonGraphic::Instance().SetOrtho2D(ms_iWidth, ms_iHeight, GetOrthoDepth()); @@ -47,6 +48,7 @@ void CPythonGraphic::SetGameRenderState() STATEMANAGER.SetRenderState(D3DRS_ALPHABLENDENABLE, FALSE); STATEMANAGER.SetRenderState(D3DRS_LIGHTING, TRUE); + STATEMANAGER.SetRenderState(D3DRS_MULTISAMPLEANTIALIAS, TRUE); } void CPythonGraphic::SetCursorPosition(int x, int y)