From 480bcdc5550d4306c1f9d6955f7d04084755ab22 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Thu, 29 Oct 2015 10:49:25 +1100 Subject: [PATCH] image: fix buffer stride initialisation --- image.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/image.cpp b/image.cpp index 1bc9dd56..d32f08c1 100644 --- a/image.cpp +++ b/image.cpp @@ -25,14 +25,9 @@ using util::image::buffer; template buffer::buffer (util::extentu<2> _size): m_size (_size), - m_stride (C, _size.w), + m_stride (C, C * _size.w), m_data (std::make_unique (_size.area () * C)) -{ - std::partial_sum (m_stride.begin (), - m_stride.end (), - m_stride.begin (), - std::multiplies ()); -} +{ ; } //-----------------------------------------------------------------------------