From d0915024e2b24b98ed02c30445e3d5e2cef45500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Thu, 17 Aug 2023 19:39:51 +0200 Subject: [PATCH] Fix YACReaderFlowGL::remove last image wasn't getting it's index modified --- common/gl/yacreader_flow_gl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/gl/yacreader_flow_gl.cpp b/common/gl/yacreader_flow_gl.cpp index b75cf0b8..b2394f39 100644 --- a/common/gl/yacreader_flow_gl.cpp +++ b/common/gl/yacreader_flow_gl.cpp @@ -712,7 +712,7 @@ void YACReaderFlowGL::remove(int item) QOpenGLTexture *texture = images[item].texture; int count = item; - while (count <= numObjects - 2) { + while (count <= numObjects - 1) { images[count].index--; count++; }