Skip to content

Commit

Permalink
Use OpenGL on Windows.
Browse files Browse the repository at this point in the history
Also fix some typos.
  • Loading branch information
JamesMBallard committed Aug 15, 2018
1 parent 576e023 commit f3ea996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions Handheld/main.cpp
@@ -1,3 +1,4 @@

/*******************************************************************************
* Copyright 2012-2018 Esri
*
Expand Down Expand Up @@ -109,11 +110,6 @@ int main(int argc, char *argv[])
#endif
QSettings::setDefaultFormat(kSettingsFormat);

#ifdef Q_OS_WIN
// Force usage of OpenGL ES through ANGLE on Windows
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
#endif

// Register the map view for QML
qmlRegisterType<SceneQuickView>("Esri.Handheld", 1, 0, "SceneView");
qRegisterMetaType<PopupManager*>("PopupManager*");
Expand Down Expand Up @@ -145,7 +141,7 @@ int main(int argc, char *argv[])
// Register Toolkit Component Types
ArcGISRuntimeToolkit::registerToolkitTypes();

// Intialize application view
// Initialize application view
QQuickView view;
view.setResizeMode(QQuickView::SizeRootObjectToView);

Expand Down
8 changes: 2 additions & 6 deletions Vehicle/main.cpp
@@ -1,3 +1,4 @@

/*******************************************************************************
* Copyright 2012-2018 Esri
*
Expand Down Expand Up @@ -109,11 +110,6 @@ int main(int argc, char *argv[])
#endif
QSettings::setDefaultFormat(kSettingsFormat);

#ifdef Q_OS_WIN
// Force usage of OpenGL ES through ANGLE on Windows
QCoreApplication::setAttribute(Qt::AA_UseOpenGLES);
#endif

// Register the map view for QML
qmlRegisterType<SceneQuickView>("Esri.Vehicle", 1, 0, "SceneView");
qRegisterMetaType<PopupManager*>("PopupManager*");
Expand Down Expand Up @@ -145,7 +141,7 @@ int main(int argc, char *argv[])
// Register Toolkit Component Types
ArcGISRuntimeToolkit::registerToolkitTypes();

// Intialize application view
// Initialize application view
QQuickView view;
view.setResizeMode(QQuickView::SizeRootObjectToView);

Expand Down

0 comments on commit f3ea996

Please sign in to comment.