image: actually use the height value...
This commit is contained in:
parent
8738192476
commit
c267678d92
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user