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:
Jake Turner
2023-08-18 07:03:53 +01:00
parent 2d53aa2a32
commit d0388f1f20
+1 -1
View File
@@ -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++)