mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-23 06:56:40 +00:00
Fix bug in y-flipping code in ResamplePixels() Closes #3025
In GL captures causes the generated thumbnail image to be incorrect for the middle two rows of the image.
This commit is contained in:
@@ -1320,7 +1320,7 @@ void RenderDoc::ResamplePixels(const FramePixels &in, RDCThumb &out)
|
||||
|
||||
if(!in.is_y_flipped)
|
||||
{
|
||||
for(uint16_t y = 0; y <= out.height / 2; y++)
|
||||
for(uint16_t y = 0; y < out.height / 2; y++)
|
||||
{
|
||||
uint16_t flipY = (out.height - 1 - y);
|
||||
for(uint16_t x = 0; x < out.width; x++)
|
||||
|
||||
Reference in New Issue
Block a user