History

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

Atlante45 committed 11 years ago

Commit bfeb0952 parents ee3a8b1 cac239a78 files · +1744 −685Browse files

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

Unified · Split

interface/src/Application.cpp+2−12
@@ -1022,6 +1022,7 @@ void Application::paintGL() { · 1021 unmodified lines
10221022
10231023 void Application::runTests() {
10241024 runTimingTests();
1025+ runUnitTests();
10251026 }
10261027
10271028 void Application::audioMuteToggled() {
@@ -1190,7 +1191,6 @@ bool Application::event(QEvent* event) { · 162 unmodified lines
11901191 }
11911192
11921193 bool Application::eventFilter(QObject* object, QEvent* event) {
1193−
11941194 if (event->type() == QEvent::ShortcutOverride) {
11951195 if (DependencyManager::get<OffscreenUi>()->shouldSwallowShortcut(event)) {
11961196 event->accept();
@@ -1795,6 +1795,7 @@ void Application::checkFPS() { · 598 unmodified lines
17951795 }
17961796
17971797 void Application::idle() {
1798+ PROFILE_RANGE(__FUNCTION__);
17981799 static SimpleAverage<float> interIdleDurations;
17991800 static uint64_t lastIdleEnd{ 0 };
18001801
@@ -3403,14 +3404,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 1602 unmodified lines
34033404 // load the view frustum
34043405 loadViewFrustum(theCamera, _displayViewFrustum);
34053406
3406− // flip x if in mirror mode (also requires reversing winding order for backface culling)
3407− if (theCamera.getMode() == CAMERA_MODE_MIRROR) {
3408− //glScalef(-1.0f, 1.0f, 1.0f);
3409− //glFrontFace(GL_CW);
3410− } else {
3411− glFrontFace(GL_CCW);
3412− }
3413−
34143407 // transform view according to theCamera
34153408 // could be myCamera (if in normal mode)
34163409 // or could be viewFrustumOffsetCamera if in offset mode
@@ -3428,9 +3421,6 @@ void Application::displaySide(RenderArgs* renderArgs, Camera& theCamera, bool se · 11 unmodified lines
34283421 Transform viewTransform;
34293422 viewTransform.setTranslation(theCamera.getPosition());
34303423 viewTransform.setRotation(rotation);
3431− if (theCamera.getMode() == CAMERA_MODE_MIRROR) {
3432−// viewTransform.setScale(Transform::Vec3(-1.0f, 1.0f, 1.0f));
3433− }
34343424 if (renderArgs->_renderSide != RenderArgs::MONO) {
34353425 glm::mat4 invView = glm::inverse(_untranslatedViewMatrix);
34363426

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