enable VBO support for Intel graphic drivers if UseVBO is activated

This commit is contained in:
wmayer
2018-09-03 16:46:54 +02:00
parent dda6672d48
commit b385387797

View File

@@ -308,6 +308,13 @@ Application::Application(bool GUIenabled)
Translator::instance()->activateLanguage(hPGrp->GetASCII("Language", (const char*)lang.toLatin1()).c_str());
GetWidgetFactorySupplier();
// Coin3d disabled VBO support for all Intel drivers but in the meantime they have improved
// so we can try to override the workaround by setting COIN_VBO
ParameterGrp::handle hViewGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
if (hViewGrp->GetBool("UseVBO",false)) {
(void)coin_setenv("COIN_VBO", "1", true);
}
// Check for the symbols for group separator and deciaml point. They must be different otherwise
// Qt doesn't work properly.
#if defined(Q_OS_WIN32)