LibreOffice Module vcl (master)  1
glxtestprocess.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #pragma once
11 
12 #include <sal/config.h>
13 #include <config_features.h>
14 
15 #if defined(UNX) && !defined MACOSX && !defined IOS && !defined ANDROID && HAVE_FEATURE_UI \
16  && HAVE_FEATURE_OPENGL
17 /* Run test for OpenGL support in own process to avoid crash with broken
18  * OpenGL drivers. Start process as early as possible.
19  * The process will be reaped late in Desktop::Main (desktop/source/app/app.cxx).
20  */
21 
23 
25 
26 #else
27 
28 inline bool fire_glxtest_process() { return true; }
29 
30 inline void reap_glxtest_process() {}
31 
32 #endif
33 
34 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
bool fire_glxtest_process()
void reap_glxtest_process()