From 2ca00714d0a699121b2fc3191e1de493a231c4ab Mon Sep 17 00:00:00 2001 From: jmacey Date: Wed, 27 Sep 2023 08:53:28 +0100 Subject: [PATCH] error in the builtin image classes should be fixed --- src/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Image.cpp b/src/Image.cpp index 52b43fff..cbef2712 100644 --- a/src/Image.cpp +++ b/src/Image.cpp @@ -410,7 +410,7 @@ bool Image::load(std::string_view _fname,bool _flipY) noexcept m_height = 1024; m_channels = 3; m_format = GL_RGB; - m_data= std::make_unique(m_width * m_height * m_channel); + m_data= std::make_unique(m_width * m_height * m_channels); size_t index = 0; constexpr float checkSize = 20; for(GLuint y = 0; y < m_height; ++y)