diff options
Diffstat (limited to 'tools/render-test/png-serialize-util.cpp')
| -rw-r--r-- | tools/render-test/png-serialize-util.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/render-test/png-serialize-util.cpp b/tools/render-test/png-serialize-util.cpp index 15aaba00b..9dca81ea8 100644 --- a/tools/render-test/png-serialize-util.cpp +++ b/tools/render-test/png-serialize-util.cpp @@ -17,10 +17,11 @@ using namespace Slang; const char* filename, ISlangBlob* pixels, uint32_t width, - uint32_t height) + uint32_t height, + uint32_t rowPitch) { int stbResult = - stbi_write_png(filename, width, height, 4, pixels->getBufferPointer(), width * 4); + stbi_write_png(filename, width, height, 4, pixels->getBufferPointer(), rowPitch); return stbResult ? SLANG_OK : SLANG_FAIL; } |
