[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - vcl/source

Michael Meeks michael.meeks at collabora.com
Thu Oct 19 19:37:00 UTC 2017


 vcl/source/opengl/OpenGLContext.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 5396ddfb01539424c3aef02bbdea3c5c3152a4ce
Author: Michael Meeks <michael.meeks at collabora.com>
Date:   Wed Oct 18 15:24:44 2017 +0100

    tdf#113225 - reset framebuffer count when resetting OpenGLContext
    
    Otherwise we can fail to allocate a new one when we need it post reset.
    
    http://crashreport.libreoffice.org/stats/crash_details/e4f26191-15d5-441a-868f-9ada21ef4424
    
    Change-Id: Icc5ec6c51338e18a0a1bc890f56670e8fe9c73ea
    Reviewed-on: https://gerrit.libreoffice.org/43508
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Meeks <michael.meeks at collabora.com>
    (cherry picked from commit 856d734ee1665b6aa7304847c3a923af09066016)
    Reviewed-on: https://gerrit.libreoffice.org/43551
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index fc12d88617ff..57216f9827a2 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -422,6 +422,7 @@ void OpenGLContext::reset()
             delete pFramebuffer;
             pFramebuffer = pPrevFramebuffer;
         }
+        mnFramebufferCount = 0;
         mpFirstFramebuffer = nullptr;
         mpLastFramebuffer = nullptr;
     }


More information about the Libreoffice-commits mailing list