image: fix is_packed query

This commit is contained in:
Danny Robson 2015-10-29 10:50:01 +11:00
parent 480bcdc555
commit 975fe0be5b

View File

@ -61,6 +61,6 @@ namespace util { namespace image {
constexpr bool constexpr bool
buffer<C,T>::is_packed (void) const buffer<C,T>::is_packed (void) const
{ {
return stride ().back () == extent ().back (); return stride ().back () * extent ().back () == size ();
} }
} } } }