summaryrefslogtreecommitdiff
path: root/servers/visual/visual_server_raster.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-07-25 20:33:37 +0200
committerGitHub <noreply@github.com>2018-07-25 20:33:37 +0200
commit237148e80f4af141049eeee033f7e60310ece8dc (patch)
treee73da79cfdb2f32383c67aa28a8bde372d36aef4 /servers/visual/visual_server_raster.cpp
parentbacc02b7d810e5ba98d93e441861843d29016110 (diff)
parent35eb7f2d6a1f872435dad3a295dc8b93721086aa (diff)
Merge pull request #18368 from Gamblify/RasterizerEngineSync
sync rasterizers with engine
Diffstat (limited to 'servers/visual/visual_server_raster.cpp')
-rw-r--r--servers/visual/visual_server_raster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp
index 5f207b1d3f..6bf3670e5a 100644
--- a/servers/visual/visual_server_raster.cpp
+++ b/servers/visual/visual_server_raster.cpp
@@ -93,14 +93,14 @@ void VisualServerRaster::request_frame_drawn_callback(Object *p_where, const Str
frame_drawn_callbacks.push_back(fdc);
}
-void VisualServerRaster::draw(bool p_swap_buffers) {
+void VisualServerRaster::draw(bool p_swap_buffers, double frame_step) {
//needs to be done before changes is reset to 0, to not force the editor to redraw
VS::get_singleton()->emit_signal("frame_pre_draw");
changes = 0;
- VSG::rasterizer->begin_frame();
+ VSG::rasterizer->begin_frame(frame_step);
VSG::scene->update_dirty_instances(); //update scene stuff