mirror of https://github.com/axmolengine/axmol.git
Update CCCamera.cpp [skip ci]
This commit is contained in:
parent
a9a29c2a40
commit
e9ce8da4ef
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue