#15098: Add headless mode with software OpenGL rendering

This commit is contained in:
Magne Sjaastad committed 2026-11-03 15:23:31 +01:00
1 parent 7b5a977401
commit 278248b71d
10 files changed
+280 -35

No files matched your search

+12
View File
@@ -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