From fccf2816d4b7561ad84a60398487a042e4ea905b Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Sun, 9 Apr 2017 17:56:37 -0300 Subject: -Fix eternal black screen on Windows -Disabled warnings on windows, need to properly set up warnings --- servers/visual/rasterizer.h | 1 + servers/visual/visual_server_canvas.cpp | 3 +++ 2 files changed, 4 insertions(+) (limited to 'servers') 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() { -- cgit v1.2.3