From ed7f8c292933db3e6b6e9f57126c7a7e967863f9 Mon Sep 17 00:00:00 2001 From: DelinWorks Date: Tue, 14 Jun 2022 02:11:40 +0300 Subject: [PATCH] Update CCCamera.cpp [skip ci] --- core/2d/CCCamera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/2d/CCCamera.cpp b/core/2d/CCCamera.cpp index 87fda7a042..f6355ac4af 100644 --- a/core/2d/CCCamera.cpp +++ b/core/2d/CCCamera.cpp @@ -244,7 +244,7 @@ bool Camera::initPerspective(float fieldOfView, float aspectRatio, float nearPla if (_zoomFactorFarPlane == 1024) _zoomFactorFarPlane = farPlane; if (_zoomFactorNearPlane == 10) - _zoomFactorFarPlane = nearPlane; + _zoomFactorNearPlane = nearPlane; Mat4::createPerspective(_fieldOfView, _aspectRatio, _nearPlane, _farPlane, &_projection); _viewProjectionDirty = true;