summaryrefslogtreecommitdiff
path: root/servers
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-04-09 17:56:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-04-09 17:59:17 -0300
commitfccf2816d4b7561ad84a60398487a042e4ea905b (patch)
treeae52c82910b8c61e4b88f2d42f451ec5f4b05a34 /servers
parent2cca9b0631eccd66f1d3dec02438642619d7ee47 (diff)
-Fix eternal black screen on Windows
-Disabled warnings on windows, need to properly set up warnings
Diffstat (limited to 'servers')
-rw-r--r--servers/visual/rasterizer.h1
-rw-r--r--servers/visual/visual_server_canvas.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/servers/visual/rasterizer.h b/servers/visual/rasterizer.h
index a420f7a081..669c2aaf2b 100644
--- a/servers/visual/rasterizer.h
+++ b/servers/visual/rasterizer.h
@@ -886,6 +886,7 @@ public:
};
virtual void canvas_begin() = 0;
+ virtual void canvas_end() = 0;
virtual void canvas_render_items(Item *p_item_list, int p_z, const Color &p_modulate, Light *p_light) = 0;
virtual void canvas_debug_viewport_shadows(Light *p_lights_with_shadow) = 0;
diff --git a/servers/visual/visual_server_canvas.cpp b/servers/visual/visual_server_canvas.cpp
index ecd1b24826..3a83ba887d 100644
--- a/servers/visual/visual_server_canvas.cpp
+++ b/servers/visual/visual_server_canvas.cpp
@@ -231,6 +231,9 @@ void VisualServerCanvas::render_canvas(Canvas *p_canvas, const Transform2D &p_tr
}
}
}
+
+ VSG::canvas_render->canvas_end();
+
}
RID VisualServerCanvas::canvas_create() {