From e57f920c28856405e5c645361e73fc4532969755 Mon Sep 17 00:00:00 2001 From: Apoorva Joshi Date: Wed, 19 Jul 2023 16:59:15 +0200 Subject: [PATCH] Revert unncessary change --- source/MaterialXRender/Image.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/MaterialXRender/Image.cpp b/source/MaterialXRender/Image.cpp index 283bc20b5e..6a1b98b547 100644 --- a/source/MaterialXRender/Image.cpp +++ b/source/MaterialXRender/Image.cpp @@ -505,8 +505,7 @@ void Image::writeTable(const FilePath& filePath, unsigned int channel) void Image::createResourceBuffer() { releaseResourceBuffer(); - size_t numTexels = _width * _height; - _resourceBuffer = malloc(numTexels * _channelCount * getBaseStride()); + _resourceBuffer = malloc(_width * _height * _channelCount * getBaseStride()); _resourceBufferDeallocator = nullptr; }