Don't report stats for server_only/no-graphics.
It may cause a crash on some devices eg. when glGetString returns NULL.
This commit is contained in:
parent
ba37513f7a
commit
4262418532
@ -2037,14 +2037,15 @@ int main(int argc, char *argv[] )
|
||||
#endif
|
||||
Log::warn("OpenGL", "OpenGL version is too old!");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// Note that on the very first run of STK internet status is set to
|
||||
// "not asked", so the report will only be sent in the next run.
|
||||
if(UserConfigParams::m_internet_status==Online::RequestManager::IPERM_ALLOWED)
|
||||
{
|
||||
HardwareStats::reportHardwareStats();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
if (STKHost::existHost())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user