Try to fix android crash

This commit is contained in:
Brad Davis 2018-10-25 16:28:30 -07:00
parent 7ca8b54039
commit 36edb939c3

View file

@ -41,8 +41,8 @@ extern "C" {
#endif
int main(int argc, const char* argv[]) {
auto format = getDefaultOpenGLSurfaceFormat();
#ifdef Q_OS_MAC
auto format = getDefaultOpenGLSurfaceFormat();
// 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
// succeed in it's creation of it's command stub contexts.
@ -51,8 +51,8 @@ int main(int argc, const char* argv[]) {
// idea why.
qputenv("QT_ENABLE_GLYPH_CACHE_WORKAROUND", "true");
// https://i.kym-cdn.com/entries/icons/original/000/008/342/ihave.jpg
#endif
QSurfaceFormat::setDefaultFormat(format);
#endif
setupHifiApplication(BuildInfo::INTERFACE_NAME);
QStringList arguments;