History

Merge branch 'master' of https://github.com/highfidelity/hifi into avatarUI

ZappoMan committed 11 years ago

Commit 827e37b2 parents d681436 970972445 files · +375 −220Browse files

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

Unified · Split

interface/src/Application.cpp+15−2
@@ -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
@@ -241,7 +249,7 @@ bool setupEssentials(int& argc, char** argv) { · 99 unmodified lines
241249 auto jsConsole = DependencyManager::set<StandAloneJSConsole>();
242250 auto dialogsManager = DependencyManager::set<DialogsManager>();
243251 auto bandwidthRecorder = DependencyManager::set<BandwidthRecorder>();
244− auto resouceCacheSharedItems = DependencyManager::set<ResouceCacheSharedItems>();
252+ auto resourceCacheSharedItems = DependencyManager::set<ResourceCacheSharedItems>();
245253 auto entityScriptingInterface = DependencyManager::set<EntityScriptingInterface>();
246254 auto windowScriptingInterface = DependencyManager::set<WindowScriptingInterface>();
247255 #if defined(Q_OS_MAC) || defined(Q_OS_WIN)
@@ -418,7 +426,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer &startup_time) : · 170 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) {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t