Fix init order

This commit is contained in:
2021-02-26 20:16:47 +01:00
parent 3d69b12cf6
commit 6394a94bfe

View File

@@ -21,11 +21,11 @@ namespace openVulkanoCpp
Math::Matrix4f viewProjection, view, projection;
Math::Vector4f camPosition;
Camera() : width(0), height(0), nearPlane(0), farPlane(0), projection(1), view(1), viewProjection(1) {}
Camera() : width(0), height(0), nearPlane(0), farPlane(0), viewProjection(1), view(1), projection(1) {}
Camera(float width, float height, float nearPlane, float farPlane)
: width(width), height(height), nearPlane(nearPlane), farPlane(farPlane)
, projection(1), view(1), viewProjection(1)
, viewProjection(1), view(1), projection(1)
{
}