Browse Source

Fix crash after rebase on the master branch

Apparently rasterizer is not initialized yet when this is called
the first time, so it crashes.
Rémi Verschelde 5 năm trước cách đây
mục cha
commit
4cac20aea3

+ 5 - 1
servers/visual/visual_server_raster.cpp

@@ -238,7 +238,11 @@ void VisualServerRaster::call_set_use_vsync(bool p_enable) {
 }
 }
 
 
 bool VisualServerRaster::is_low_end() const {
 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() {
 VisualServerRaster::VisualServerRaster() {