diff --git a/nel/src/gui/css_background_renderer.cpp b/nel/src/gui/css_background_renderer.cpp index 4d7df021e..230807068 100644 --- a/nel/src/gui/css_background_renderer.cpp +++ b/nel/src/gui/css_background_renderer.cpp @@ -140,13 +140,6 @@ namespace NLGUI // flush draw cache to ensure correct draw order rVR.flush(); - sint32 clipX, clipY, clipW, clipH; - if (m_Viewport) - { - rVR.getClipWindow(clipX, clipY, clipW, clipH); - rVR.setClipWindow(m_Viewport->getXReal(), m_Viewport->getYReal(), m_Viewport->getWReal(), m_Viewport->getHReal()); - } - // TODO: no need for widget manager, if global color is set from parent CRGBA globalColor; if (m_ModulateGlobalColor) @@ -166,9 +159,6 @@ namespace NLGUI // flush draw cache to ensure correct draw order rVR.flush(); - - if (m_Viewport) - rVR.setClipWindow(clipX, clipY, clipW, clipH); } // ----------------------------------------------------------------------------