From 7ba0a6979068e4fc110ea28ab3e227b736437d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 12 Dec 2019 17:22:30 +0100 Subject: [PATCH] Fix crash after rebase on the master branch Apparently rasterizer is not initialized yet when this is called the first time, so it crashes. --- servers/visual/visual_server_raster.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/servers/visual/visual_server_raster.cpp b/servers/visual/visual_server_raster.cpp index 290891c3bf1..0d3400a235a 100644 --- a/servers/visual/visual_server_raster.cpp +++ b/servers/visual/visual_server_raster.cpp @@ -228,7 +228,11 @@ void VisualServerRaster::call_set_use_vsync(bool p_enable) { } bool VisualServerRaster::is_low_end() const { - return VSG::rasterizer->is_low_end(); + // FIXME: Commented out when rebasing vulkan branch on master, + // causes a crash, it seems rasterizer is not initialized yet the + // first time it's called. + //return VSG::rasterizer->is_low_end(); + return false; } VisualServerRaster::VisualServerRaster() {