Fix crash after rebase on the master branch

Apparently rasterizer is not initialized yet when this is called
the first time, so it crashes.
This commit is contained in:
Rémi Verschelde 2019-12-12 17:22:30 +01:00
parent d92bf76e45
commit 7ba0a69790
1 changed files with 5 additions and 1 deletions

View File

@ -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() {