summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2017-11-03 10:26:26 +0000
committerMichael Meeks <michael.meeks@collabora.com>2017-11-03 10:26:26 +0000
commit7090a2020d4d850de698bf2cc4e2679a0797cfdf (patch)
tree29e37bb3875b913df78ff5bf421b02b2d59fe268
parent9aea96b1ef5cee29501e5a087e92fb08f0258879 (diff)
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
-rw-r--r--vcl/source/opengl/OpenGLContext.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/source/opengl/OpenGLContext.cxx b/vcl/source/opengl/OpenGLContext.cxx
index e6b85e3c97db..757e659af3af 100644
--- a/vcl/source/opengl/OpenGLContext.cxx
+++ b/vcl/source/opengl/OpenGLContext.cxx
@@ -406,6 +406,7 @@ void OpenGLContext::reset()
}
mpFirstFramebuffer = nullptr;
mpLastFramebuffer = nullptr;
+ mnFramebufferCount = 0;
}
// destroy all programs