Warning, /graphics/krita/3rdparty/ext_googleangle/01-patches_qt5.12.12/0005-ANGLE-Fix-initialization-of-zero-sized-window.patch is written in an unsupported language. File is not indexed.

0001 From 046441f9645f6c0d68a7f62522c84298bd9ff7dc Mon Sep 17 00:00:00 2001
0002 From: Oliver Wolff <oliver.wolff@qt.io>
0003 Date: Wed, 22 Aug 2018 13:12:07 +0200
0004 Subject: [PATCH 05/17] ANGLE: Fix initialization of zero-sized window
0005 
0006 The clientRect might be empty when creating a window of zero size. The
0007 side effect of a division by zero is that matrix transformation fails
0008 and hence the swapchain gets into an invalid state.
0009 
0010 Change-Id: Idbaed72deadb7b87052ac27e194a40d1810e6f7a
0011 ---
0012  .../renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp   | 4 ++--
0013  1 file changed, 2 insertions(+), 2 deletions(-)
0014 
0015 diff --git a/src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp b/src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp
0016 index a90f0bc7a..09194992b 100644
0017 --- a/src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp
0018 +++ b/src/libANGLE/renderer/d3d/d3d11/winrt/SwapChainPanelNativeWindow.cpp
0019 @@ -325,8 +325,8 @@ HRESULT SwapChainPanelNativeWindow::createSwapChain(ID3D11Device *device,
0020  
0021  HRESULT SwapChainPanelNativeWindow::scaleSwapChain(const Size &windowSize, const RECT &clientRect)
0022  {
0023 -    Size renderScale = {windowSize.Width / (float)clientRect.right,
0024 -                        windowSize.Height / (float)clientRect.bottom};
0025 +    Size renderScale = {windowSize.Width / std::max(LONG(1), clientRect.right),
0026 +                        windowSize.Height / std::max(LONG(1), clientRect.bottom)};
0027      // Setup a scale matrix for the swap chain
0028      DXGI_MATRIX_3X2_F scaleMatrix = {};
0029      scaleMatrix._11               = renderScale.Width;
0030 -- 
0031 2.24.1.windows.2
0032