Fix viewport margins drawn after swapping buffers

This commit is contained in:
Pedro J. Estébanez 2017-10-30 21:20:12 +01:00
parent 50306041e5
commit 793da07a4d

View file

@ -102,6 +102,7 @@ void VisualServerRaster::draw() {
VSG::viewport->draw_viewports(); VSG::viewport->draw_viewports();
VSG::scene->render_probes(); VSG::scene->render_probes();
_draw_margins();
VSG::rasterizer->end_frame(); VSG::rasterizer->end_frame();
while (frame_drawn_callbacks.front()) { while (frame_drawn_callbacks.front()) {
@ -119,8 +120,6 @@ void VisualServerRaster::draw() {
frame_drawn_callbacks.pop_front(); frame_drawn_callbacks.pop_front();
} }
_draw_margins();
} }
void VisualServerRaster::sync() { void VisualServerRaster::sync() {
} }