Warning, /graphics/krita/3rdparty/ext_googleangle/01-patches_qt5.12.12/0008-ANGLE-Disable-multisampling-to-avoid-crash-in-Qt-app.patch is written in an unsupported language. File is not indexed.

0001 From e09677662ee7e75a2ce0dd6f0716d9a03fd225e2 Mon Sep 17 00:00:00 2001
0002 From: Andre de la Rocha <andre.rocha@qt.io>
0003 Date: Tue, 11 Sep 2018 12:57:23 +0200
0004 Subject: [PATCH 08/17] ANGLE: Disable multisampling to avoid crash in Qt
0005  applications
0006 
0007 This patch adds a workaround for the crash that occurs with multisampling
0008 enabled in some Qt applications (e.g., the 2dpainting example). The old
0009 Angle release we were using lacked support for multisampling, so it was
0010 ignored when requested. This current version seems to support it, but is
0011 causing a crash in the D3D11 shaders, so this workaround disables that
0012 support.
0013 ---
0014  src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp | 4 ++++
0015  1 file changed, 4 insertions(+)
0016 
0017 diff --git a/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp b/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp
0018 index 74110f04c..e89719966 100644
0019 --- a/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp
0020 +++ b/src/libANGLE/renderer/d3d/d3d11/Renderer11.cpp
0021 @@ -1121,6 +1121,8 @@ gl::SupportedSampleSet Renderer11::generateSampleSetForEGLConfig(
0022  {
0023      gl::SupportedSampleSet sampleCounts;
0024  
0025 +#if 0  // Qt: Disabling support for multisampling as it is causing a crash in the D3D11 shaders.
0026 +
0027      // Generate a new set from the set intersection of sample counts between the color and depth
0028      // format caps.
0029      std::set_intersection(colorBufferFormatCaps.sampleCounts.begin(),
0030 @@ -1141,6 +1143,8 @@ gl::SupportedSampleSet Renderer11::generateSampleSetForEGLConfig(
0031          sampleCounts = depthStencilBufferFormatCaps.sampleCounts;
0032      }
0033  
0034 +#endif
0035 +
0036      // Always support 0 samples
0037      sampleCounts.insert(0);
0038  
0039 -- 
0040 2.24.1.windows.2
0041