diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/app/svapp.cxx | 12 | ||||
-rw-r--r-- | vcl/source/opengl/OpenGLHelper.cxx | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/vcl/source/app/svapp.cxx b/vcl/source/app/svapp.cxx index b394c5302f5f..e1336ab086ff 100644 --- a/vcl/source/app/svapp.cxx +++ b/vcl/source/app/svapp.cxx @@ -1646,6 +1646,18 @@ void Application::EnableEventTestingMode() bEventTestingMode = true; } +static bool bSafeMode = false; + +bool Application::IsSafeModeEnabled() +{ + return bSafeMode; +} + +void Application::EnableSafeMode() +{ + bSafeMode = true; +} + void Application::ShowNativeErrorBox(const OUString& sTitle , const OUString& sMessage) { diff --git a/vcl/source/opengl/OpenGLHelper.cxx b/vcl/source/opengl/OpenGLHelper.cxx index 45f8f7684df2..f07e7dcbfa8e 100644 --- a/vcl/source/opengl/OpenGLHelper.cxx +++ b/vcl/source/opengl/OpenGLHelper.cxx @@ -1024,6 +1024,10 @@ bool OpenGLHelper::isVCLOpenGLEnabled() else if (officecfg::Office::Common::VCL::UseOpenGL::get()) bEnable = true; + // Force disable in safe mode + if (Application::IsSafeModeEnabled()) + bEnable = false; + bRet = bEnable; } |