diff --git a/include/Nazara/Graphics/FrameGraph.hpp b/include/Nazara/Graphics/FrameGraph.hpp index df6325c07..c28dac90e 100644 --- a/include/Nazara/Graphics/FrameGraph.hpp +++ b/include/Nazara/Graphics/FrameGraph.hpp @@ -59,7 +59,7 @@ namespace Nz struct AttachmentArray : FramePassAttachment { - std::size_t layerCount; + unsigned int layerCount; }; struct AttachmentCube : FramePassAttachment diff --git a/src/Nazara/Graphics/FrameGraph.cpp b/src/Nazara/Graphics/FrameGraph.cpp index c5781d421..e72b5ea1a 100644 --- a/src/Nazara/Graphics/FrameGraph.cpp +++ b/src/Nazara/Graphics/FrameGraph.cpp @@ -1057,7 +1057,7 @@ namespace Nz data.layerCount != attachmentData.layerCount) continue; - m_pending.textureCubePool.erase(it); + m_pending.texture2DArrayPool.erase(it); m_pending.attachmentToTextures.emplace(attachmentIndex, textureId); if (!attachmentData.name.empty() && data.name != attachmentData.name)