2
0
Эх сурвалжийг харах

frustum definition duplication(s)

Azaezel 7 жил өмнө
parent
commit
25920aeee9

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

@@ -432,8 +432,6 @@ void GuiTSCtrl::_internalRender(RectI guiViewport, RectI renderViewport, Frustum
    if (mRenderStyle == RenderStyleStereoSideBySide && debugDraw->willDraw())
    {
       // For SBS we need to render over each viewport
-      Frustum frustum;
-
       GFX->setViewport(mLastCameraQuery.stereoViewports[0]);
       MathUtils::makeFovPortFrustum(&frustum, mLastCameraQuery.ortho, mLastCameraQuery.nearPlane, mLastCameraQuery.farPlane, mLastCameraQuery.fovPort[0]);
       GFX->setFrustum(frustum);
@@ -543,7 +541,6 @@ void GuiTSCtrl::onRender(Point2I offset, const RectI &updateRect)
       GFX->setStereoTargets(mLastCameraQuery.stereoTargets);
 
       MatrixF myTransforms[2];
-      Frustum frustum;
 
       if (smUseLatestDisplayTransform)
       {