Warning, /graphics/krita/3rdparty/ext_googleangle/01-patches_qt5.12.12/0006-ANGLE-winrt-Do-full-screen-update-if-the-the-window-.patch is written in an unsupported language. File is not indexed.
0001 From 1b7c692e24f8e0f224a75db8e8f1556d8d367054 Mon Sep 17 00:00:00 2001 0002 From: Oliver Wolff <oliver.wolff@qt.io> 0003 Date: Wed, 22 Aug 2018 15:17:52 +0200 0004 Subject: [PATCH 06/17] ANGLE: winrt: Do full screen update if the the window 0005 size is reduced 0006 0007 We cannot do partial updates if the window size is reduced as this will 0008 result in a "pDstBox is not a valid box for the destination subresource." 0009 error. 0010 0011 Change-Id: I9a8d91bca961f52e1aab1bec5321922cfc842fb3 0012 --- 0013 src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp | 11 ++++++++--- 0014 1 file changed, 8 insertions(+), 3 deletions(-) 0015 0016 diff --git a/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp b/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp 0017 index fa1adda79..e49968c2a 100644 0018 --- a/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp 0019 +++ b/src/libANGLE/renderer/d3d/d3d11/TextureStorage11.cpp 0020 @@ -764,9 +764,14 @@ angle::Result TextureStorage11::setData(const gl::Context *context, 0021 0022 Context11 *context11 = GetImplAs<Context11>(context); 0023 0024 - const int width = destBox ? destBox->width : static_cast<int>(image->getWidth()); 0025 - const int height = destBox ? destBox->height : static_cast<int>(image->getHeight()); 0026 - const int depth = destBox ? destBox->depth : static_cast<int>(image->getDepth()); 0027 + const int imageWidth = static_cast<int>(image->getWidth()); 0028 + const int width = destBox ? destBox->width : imageWidth; 0029 + const int imageHeight = static_cast<int>(image->getHeight()); 0030 + const int height = destBox ? destBox->height : imageHeight; 0031 + const int imageDepth = static_cast<int>(image->getDepth()); 0032 + const int depth = destBox ? destBox->depth : imageDepth; 0033 + if (imageWidth < width || imageHeight < height || imageDepth < depth) 0034 + fullUpdate = true; 0035 GLuint srcRowPitch = 0; 0036 ANGLE_CHECK_GL_MATH(context11, 0037 internalFormatInfo.computeRowPitch(type, width, unpack.alignment, 0038 -- 0039 2.24.1.windows.2 0040