Merge pull request #12523 from RandomShaper/fix-margins-drawn-too-late

Fix viewport margins drawn after swapping buffers
This commit is contained in:
Juan Linietsky 2017-10-30 19:47:02 -03:00 committed by GitHub
commit fd07a283e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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() {
} }