Browse Source

Fix stack overflow

James Urquhart 9 years ago
parent
commit
694dd4abfa
1 changed files with 0 additions and 2 deletions
  1. 0 2
      Engine/source/gui/3d/guiTSControl.cpp

+ 0 - 2
Engine/source/gui/3d/guiTSControl.cpp

@@ -618,14 +618,12 @@ void GuiTSCtrl::onRender(Point2I offset, const RectI &updateRect)
          // Use the view matrix determined from the display device
          // Use the view matrix determined from the display device
          myTransforms[0] = mLastCameraQuery.eyeTransforms[0];
          myTransforms[0] = mLastCameraQuery.eyeTransforms[0];
          myTransforms[1] = mLastCameraQuery.eyeTransforms[1];
          myTransforms[1] = mLastCameraQuery.eyeTransforms[1];
-         myTransforms[2] = mLastCameraQuery.cameraMatrix;
       }
       }
       else
       else
       {
       {
          // Use the view matrix determined from the control object
          // Use the view matrix determined from the control object
          myTransforms[0] = mLastCameraQuery.cameraMatrix;
          myTransforms[0] = mLastCameraQuery.cameraMatrix;
          myTransforms[1] = mLastCameraQuery.cameraMatrix;
          myTransforms[1] = mLastCameraQuery.cameraMatrix;
-         myTransforms[2] = mLastCameraQuery.cameraMatrix;
 
 
          QuatF qrot = mLastCameraQuery.cameraMatrix;
          QuatF qrot = mLastCameraQuery.cameraMatrix;
          Point3F pos = mLastCameraQuery.cameraMatrix.getPosition();
          Point3F pos = mLastCameraQuery.cameraMatrix.getPosition();