diff --git a/src/GUI/Frame.h b/src/GUI/Frame.h index 25c2dd1..ba99851 100644 --- a/src/GUI/Frame.h +++ b/src/GUI/Frame.h @@ -132,7 +132,11 @@ public: Rectangle AbsoluteRectangle() { int left = Left(); + if (m_Parent) + left = std::max(left, m_Parent->Left()); int top = Top(); + if (m_Parent) + top = std::max(top, m_Parent->Top()); int width = Right() - left; int height = Bottom() - top; return Rectangle(left, top, width, height); diff --git a/src/Renderer.cpp b/src/Renderer.cpp index 480e3dd..381fde0 100755 --- a/src/Renderer.cpp +++ b/src/Renderer.cpp @@ -276,6 +276,7 @@ void Renderer::DrawFrame(RenderQueuePair &rq) //glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); //glClearColor(0.0f, 0.5f, 0.0f, 1.0f); + glEnable(GL_SCISSOR_TEST); glDisable(GL_DEPTH_TEST); glEnable(GL_CULL_FACE); glCullFace(GL_BACK);