image: actually use the height value...

This commit is contained in:
Danny Robson 2015-07-23 18:18:12 +10:00
parent 8738192476
commit c267678d92

View File

@ -129,7 +129,7 @@ util::image::buffer<T>::buffer (size_t _w, size_t _h, size_t _s):
w (_w), w (_w),
h (_h), h (_h),
s (_s), s (_s),
m_data (std::make_unique<T[]> (_w * _s)) m_data (std::make_unique<T[]> (_h * _s))
{ {
CHECK_NEQ (w * h, 0); CHECK_NEQ (w * h, 0);
CHECK_GE (s, w); CHECK_GE (s, w);