diff options
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index 1924d46f268b..d7187c9921cc 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -987,6 +987,9 @@ bool scaleTexture(const rtl::Reference< OpenGLContext > &xContext, { int nWidth = rTexture.GetWidth(); int nHeight = rTexture.GetHeight(); + if (nWidth == 0 || nHeight == 0) + return false; + int nNewWidth = nWidth / ixscale; int nNewHeight = nHeight / iyscale; |