mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-24 06:48:13 -06:00
#15098: Add headless mode with software OpenGL rendering
This commit is contained in:
1 parent
7b5a977401
commit
278248b71d
10 files changed
+280
-35
No files matched your search
@@ -86,6 +86,7 @@ void riaFilteredMessageHandler( QtMsgType type, const QMessageLogContext& contex
|
||||
|
||||
RiaApplication* createApplication( int& argc, char* argv[] )
|
||||
{
|
||||
bool isHeadless = false;
|
||||
for ( int i = 1; i < argc; ++i )
|
||||
{
|
||||
if ( !qstrcmp( argv[i], "--console" ) || !qstrcmp( argv[i], "--unittest" ) )
|
||||
@@ -96,7 +97,18 @@ RiaApplication* createApplication( int& argc, char* argv[] )
|
||||
return new RiaConsoleApplication( argc, argv );
|
||||
#endif
|
||||
}
|
||||
|
||||
if ( !qstrcmp( argv[i], "--headless" ) )
|
||||
{
|
||||
isHeadless = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ( isHeadless )
|
||||
{
|
||||
RiaMainTools::enableHeadlessRendering();
|
||||
}
|
||||
|
||||
#ifdef ENABLE_GRPC
|
||||
return new RiaGrpcGuiApplication( argc, argv );
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user