diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2016-02-10 00:46:17 +0000 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2016-02-10 06:10:24 +0000 |
commit | 9c091100e2e4d604efbf5414663e8174ad18ea60 (patch) | |
tree | b0295246687b720d5bbe883abd4c06ad72009f28 /vcl/opengl/scale.cxx | |
parent | 432328f19bea0aa14a2b09a701c5b3aaf1f93908 (diff) |
tdf#97700 - vcl: opengl - fix memory corrupting size mis-match.
Change-Id: Iab49a20c85f9deb3e8c60a782050aa4c12b663ad
Reviewed-on: https://gerrit.libreoffice.org/22253
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl/opengl/scale.cxx')
-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 80bbdd6d521a..a971b15e7e17 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; |