canvas/source/opengl/ogl_canvashelper.cxx |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit d8b30aea699f01df565af0afbee4a2174beca305
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Nov 21 08:42:58 2025 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Nov 21 21:36:50 2025 +0100

    cid#1675018 Big parameter passed by value
    
    and
    
    cid#1675020 Big parameter passed by value
    
    Change-Id: I4773dd07c84764c2239d8e54eed3e96691b6c54c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/194305
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/canvas/source/opengl/ogl_canvashelper.cxx 
b/canvas/source/opengl/ogl_canvashelper.cxx
index cf83446c3d03..d1cfa304d861 100644
--- a/canvas/source/opengl/ogl_canvashelper.cxx
+++ b/canvas/source/opengl/ogl_canvashelper.cxx
@@ -570,7 +570,7 @@ namespace oglcanvas
                     // copy state from Gradient polypoly locally
                     // (given object might change!)
 
-                    rAct.maFunction = [aValues = pGradient->getValues(), 
aTexture = textures[0]]
+                    rAct.maFunction = [aValues = pGradient->getValues(), 
textures]
                         (const CanvasHelper& rHelper,
                          const basegfx::B2DHomMatrix& rTransform,
                          GLenum eSrcBlend,
@@ -583,7 +583,7 @@ namespace oglcanvas
                                                            eSrcBlend,
                                                            eDstBlend,
                                                            aValues,
-                                                           aTexture,
+                                                           textures[0],
                                                            rPolyPolygons);
                     };
 
@@ -626,7 +626,7 @@ namespace oglcanvas
                                 aPixelData,
                                 canvastools::getStdColorSpace()));
 
-                        rAct.maFunction = [aTexture = textures[0],
+                        rAct.maFunction = [textures,
                                            aPixelSize = aSize,
                                            aPixelData = aARGBBytes,
                                            nPixelCrc32 = rtl_crc32(0, 
aARGBBytes.getConstArray(), aARGBBytes.getLength())]
@@ -641,7 +641,7 @@ namespace oglcanvas
                                                                rTransform,
                                                                eSrcBlend,
                                                                eDstBlend,
-                                                               aTexture,
+                                                               textures[0],
                                                                aPixelSize,
                                                                aPixelData,
                                                                nPixelCrc32,

Reply via email to