Fix viewport resizing not updating camera aspect ratio

This commit is contained in:
2021-02-11 19:41:24 +01:00
parent 339afdcfa1
commit 8dc50ab279
4 changed files with 22 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
#include <cstdint>
#include <algorithm>
#undef max
namespace openVulkanoCpp
{
@@ -43,7 +44,7 @@ namespace openVulkanoCpp
this->frameBufferClearColor = frameBufferClearColor;
}
[[nodiscard]] std::array<float, 4> GetFrameBufferClearColor() const
[[nodiscard]] const std::array<float, 4>& GetFrameBufferClearColor() const
{
return frameBufferClearColor;
}