From 16201e64c4413e2477211f6e6bb0cba900bc9010 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=BF=8A=E5=98=89?= Date: Mon, 31 May 2021 08:46:21 +0000 Subject: [PATCH] Disable OpenGLES in uwp compilation. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: dawn:766 Change-Id: I0e6910edbb1ee794487ed7132484e445779f6cf7 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/52660 Reviewed-by: Corentin Wallez Commit-Queue: 陈俊嘉 --- scripts/dawn_features.gni | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/dawn_features.gni b/scripts/dawn_features.gni index 444cf37325..ac9531c47c 100644 --- a/scripts/dawn_features.gni +++ b/scripts/dawn_features.gni @@ -66,7 +66,9 @@ declare_args() { # Enables the compilation of Dawn's OpenGLES backend # (WebGPU/Compat subset) - dawn_enable_opengles = (is_linux && !is_chromeos) || is_win + # Disables OpenGLES when compiling for UWP, since UWP only supports d3d + dawn_enable_opengles = + (is_linux && !is_chromeos) || (is_win && !dawn_is_winuwp) # Enables the compilation of Dawn's Vulkan backend # Disables vulkan when compiling for UWP, since UWP only supports d3d