Skip to content

Commit

Permalink
Revert unncessary change
Browse files Browse the repository at this point in the history
  • Loading branch information
ApoorvaJ committed Sep 18, 2023
1 parent 6ff67a9 commit e57f920
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/MaterialXRender/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit e57f920

Please sign in to comment.