fix for bokeh blur using uninitialized memory - it would cause some tiles not to be blurred.

was in fact a bug in MemoryBuffer::getMaximumValue
This commit is contained in:
2012-08-03 09:51:10 +00:00
parent db8c9c24f6
commit 52e31a4866
2 changed files with 22 additions and 7 deletions

View File

@@ -202,6 +202,9 @@ public:
/**
* @brief add the content from otherBuffer to this MemoryBuffer
* @param otherBuffer source buffer
*
* @note take care when running this on a new buffer since it wont fill in
* uninitialized values in areas where the buffers don't overlap.
*/
void copyContentFrom(MemoryBuffer *otherBuffer);
@@ -229,7 +232,7 @@ public:
float *convertToValueBuffer();
float getMaximumValue();
float getMaximumValue(rcti* rect);
float getMaximumValue(rcti *rect);
private:
unsigned int determineBufferSize();