From: José Fonseca Date: Thu, 12 Sep 2013 16:21:37 +0000 (+0100) Subject: image: Fix allocation of floating point images. X-Git-Url: https://git.cworth.org/git?p=apitrace;a=commitdiff_plain;h=16bfd14f69f131ae53b1f3d1b5af87a54d95bc38 image: Fix allocation of floating point images. --- diff --git a/image/image.hpp b/image/image.hpp index e36bdd0..1b21acd 100644 --- a/image/image.hpp +++ b/image/image.hpp @@ -64,7 +64,7 @@ public: channelType(t), bytesPerPixel(channels * (t == TYPE_FLOAT ? 4 : 1)), flipped(f), - pixels(new unsigned char[h*w*c]) + pixels(new unsigned char[h*w*bytesPerPixel]) {} inline ~Image() {