summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2017-10-30 21:20:12 +0100
committerPedro J. Estébanez <pedrojrulez@gmail.com>2017-10-30 21:20:12 +0100
commit793da07a4dc6be1437fba4cefec9dc0c8035be64 (patch)
tree1f8b32387ab0cf005d8cfc5839e5107c0a2eedc8
parent50306041e5be9859bd448fe80a52be45694b6688 (diff)
Fix viewport margins drawn after swapping buffers
-rw-r--r--servers/visual/visual_server_raster.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index c644fd2d55..69e2d1c162 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -102,6 +102,7 @@ void VisualServerRaster::draw() {
VSG::viewport->draw_viewports();
VSG::scene->render_probes();
+ _draw_margins();
VSG::rasterizer->end_frame();
while (frame_drawn_callbacks.front()) {
@@ -119,8 +120,6 @@ void VisualServerRaster::draw() {
frame_drawn_callbacks.pop_front();
}
-
- _draw_margins();
}
void VisualServerRaster::sync() {
}