From a0afe4bf8c011222b85c481ae209b09f75189858 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Sat, 10 Mar 2018 13:55:50 +0100 Subject: Reduce buffer size by a factor of 2 (image is symmetric) --- BuddhaTest/include/Helpers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'BuddhaTest/include') diff --git a/BuddhaTest/include/Helpers.h b/BuddhaTest/include/Helpers.h index 8c897d5..a4bf15d 100644 --- a/BuddhaTest/include/Helpers.h +++ b/BuddhaTest/include/Helpers.h @@ -9,7 +9,7 @@ namespace Helpers GLuint LoadShaders(const char * vertex_file_path, const char * fragment_file_path); GLuint LoadComputeShader(const char * compute_file_path, unsigned int localSizeX, unsigned int localSizeY, unsigned int localSizeZ); - void WriteOutputPNG(const std::vector& data, unsigned int width, unsigned int height); + void WriteOutputPNG(const std::vector& data, unsigned int width, unsigned int bufferHeight); /** Wraps around a C file descriptor. Libpng could be taught to use C++ streams, but I'm too lazy and rather wrap this ugly thing up, so it gets cleaned... */ class ScopedCFileDescriptor -- cgit v1.2.3