diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-02-10 00:46:17 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-02-10 00:46:17 +0000 |
commit | fea95da81260bc7eabe7ece595829009b2db3e62 (patch) | |
tree | 3c74e6ebf3ae32571ac11b525003f347e93b68bf /vcl/opengl | |
parent | 13667e6576e3e5bc5b133764f77d71cef6c4687a (diff) |
tdf#97700 - vcl: opengl - fix memory corrupting size mis-match.
Change-Id: Iab49a20c85f9deb3e8c60a782050aa4c12b663ad
Diffstat (limited to 'vcl/opengl')
-rw-r--r-- | vcl/opengl/scale.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx index 9ba74323c8c1..3f248072ad6a 100644 --- a/vcl/opengl/scale.cxx +++ b/vcl/opengl/scale.cxx @@ -68,6 +68,8 @@ bool OpenGLSalBitmap::ImplScaleFilter( mnWidth = nNewWidth; mnHeight = nNewHeight; + mnBufWidth = mnWidth; + mnBufHeight = mnHeight; maTexture = aNewTex; CHECK_GL_ERROR(); @@ -181,6 +183,8 @@ bool OpenGLSalBitmap::ImplScaleConvolution( mnWidth = nNewWidth; mnHeight = nNewHeight; + mnBufWidth = mnWidth; + mnBufHeight = mnHeight; CHECK_GL_ERROR(); return true; @@ -256,6 +260,8 @@ bool OpenGLSalBitmap::ImplScaleArea( const rtl::Reference< OpenGLContext > &xCon mnWidth = nNewWidth; mnHeight = nNewHeight; + mnBufWidth = mnWidth; + mnBufHeight = mnHeight; CHECK_GL_ERROR(); return true; |