diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-12-23 13:37:33 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2016-01-04 22:11:52 +0000 |
commit | 27953088c5fc8a51cb5c26b0746cb42f56324404 (patch) | |
tree | 649833e7ad0929a2132759ebde43fa8eb07feaff /vcl | |
parent | afb5bd25235ca53a589447680737180a4d0d8cd1 (diff) |
tdf#96690 - don't copy tiny non-rendered-to virtual devices.
Change-Id: Ic9d90bb7f652599b5a6ce303aa026b7e4e255324
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 56da7c18d5fb..7cbf73fe9edd 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1649,6 +1649,13 @@ void OpenGLSalGraphicsImpl::DoCopyBits( const SalTwoRect& rPosAry, OpenGLSalGrap { VCL_GL_INFO( "::copyBits" ); + if( !rImpl.maOffscreenTex ) + { + VCL_GL_INFO( "::copyBits - skipping copy of un-initialized framebuffer contents of size " + << rImpl.GetWidth() << "x" << rImpl.GetHeight() ); + return; + } + if( &rImpl == this && (rPosAry.mnSrcWidth == rPosAry.mnDestWidth) && (rPosAry.mnSrcHeight == rPosAry.mnDestHeight)) |