History

Merge branch 'master' into oculus_old_renderer

Bradley Austin Davis committed 11 years ago

Commit db9ab3e2 parents eb816f7 d57959529 files · +199 −136Browse files

Showing the changes to interface/src/Application.cpp (1 of 29 files). Show all

Unified · Split

interface/src/Application.cpp+14−1
@@ -68,6 +68,7 @@ · 67 unmodified lines
6868 #include <MainWindow.h>
6969 #include <ModelEntityItem.h>
7070 #include <NetworkAccessManager.h>
71+#include <NetworkingConstants.h>
7172 #include <OctalCode.h>
7273 #include <OctreeSceneStats.h>
7374 #include <PacketHeaders.h>
@@ -136,6 +137,13 @@ · 62 unmodified lines
136137 #include "ui/StandAloneJSConsole.h"
137138 #include "ui/Stats.h"
138139
140+// ON WIndows PC, NVidia Optimus laptop, we want to enable NVIDIA GPU
141+#if defined(Q_OS_WIN)
142+extern "C" {
143+ _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
144+}
145+#endif
146+
139147 using namespace std;
140148
141149 // Starfield information
@@ -418,7 +426,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 276 unmodified lines
418426 connect(&accountManager, &AccountManager::usernameChanged, this, &Application::updateWindowTitle);
419427
420428 // set the account manager's root URL and trigger a login request if we don't have the access token
421− accountManager.setAuthURL(DEFAULT_NODE_AUTH_URL);
429+ accountManager.setAuthURL(NetworkingConstants::METAVERSE_SERVER_URL);
422430 UserActivityLogger::getInstance().launch(applicationVersion());
423431
424432 // once the event loop has started, check and signal for an access token
@@ -646,6 +654,11 @@ void Application::initializeGL() { · 221 unmodified lines
646654 }
647655 #endif
648656
657+ qDebug() << "GL Version: " << QString((const char*) glGetString(GL_VERSION));
658+ qDebug() << "GL Shader Language Version: " << QString((const char*) glGetString(GL_SHADING_LANGUAGE_VERSION));
659+ qDebug() << "GL Vendor: " << QString((const char*) glGetString(GL_VENDOR));
660+ qDebug() << "GL Renderer: " << QString((const char*) glGetString(GL_RENDERER));
661+
649662 #ifdef WIN32
650663 GLenum err = glewInit();
651664 if (GLEW_OK != err) {