From 599192d0798700d1b95afd511cb0e3183f121a14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= Date: Sun, 19 Feb 2017 20:45:18 +0200 Subject: [PATCH] Fixed|UI|Home: Clipping the map outline of a server info dialog --- doomsday/apps/client/src/ui/widgets/mapoutlinewidget.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doomsday/apps/client/src/ui/widgets/mapoutlinewidget.cpp b/doomsday/apps/client/src/ui/widgets/mapoutlinewidget.cpp index 36aae63529..7c806c7025 100644 --- a/doomsday/apps/client/src/ui/widgets/mapoutlinewidget.cpp +++ b/doomsday/apps/client/src/ui/widgets/mapoutlinewidget.cpp @@ -140,10 +140,13 @@ void MapOutlineWidget::drawContent() GuiWidget::drawContent(); if (d->vbuf && d->vbuf->count()) { - root().painter().flush(); + auto &painter = root().painter(); + painter.flush(); + GLState::push().setNormalizedScissor(painter.normalizedScissor()); d->uMvpMatrix = root().projMatrix2D() * d->modelMatrix(); d->uColor = Vector4f(1, 1, 1, d->mapOpacity * visibleOpacity()); d->drawable.draw(); + GLState::pop(); } }