mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 21:53:47 +02:00
Try to fix android crash
This commit is contained in:
parent
7ca8b54039
commit
36edb939c3
1 changed files with 2 additions and 2 deletions
|
@ -41,8 +41,8 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, const char* argv[]) {
|
int main(int argc, const char* argv[]) {
|
||||||
auto format = getDefaultOpenGLSurfaceFormat();
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
auto format = getDefaultOpenGLSurfaceFormat();
|
||||||
// Deal with some weirdness in the chromium context sharing on Mac.
|
// Deal with some weirdness in the chromium context sharing on Mac.
|
||||||
// The primary share context needs to be 3.2, so that the Chromium will
|
// The primary share context needs to be 3.2, so that the Chromium will
|
||||||
// succeed in it's creation of it's command stub contexts.
|
// succeed in it's creation of it's command stub contexts.
|
||||||
|
@ -51,8 +51,8 @@ int main(int argc, const char* argv[]) {
|
||||||
// idea why.
|
// idea why.
|
||||||
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "true");
|
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "true");
|
||||||
// https://i.kym-cdn.com/entries/icons/original/000/008/342/ihave.jpg
|
// https://i.kym-cdn.com/entries/icons/original/000/008/342/ihave.jpg
|
||||||
#endif
|
|
||||||
QSurfaceFormat::setDefaultFormat(format);
|
QSurfaceFormat::setDefaultFormat(format);
|
||||||
|
#endif
|
||||||
setupHifiApplication(BuildInfo::INTERFACE_NAME);
|
setupHifiApplication(BuildInfo::INTERFACE_NAME);
|
||||||
|
|
||||||
QStringList arguments;
|
QStringList arguments;
|
||||||
|
|
Loading…
Reference in a new issue