From 175d180ff94880dc88830c6044d153678b5c742f Mon Sep 17 00:00:00 2001 From: Bob Hood Date: Thu, 13 Aug 2026 11:20:47 -0600 Subject: [PATCH] Guard explicit context include in egl_stubs_getprocaddress_autogen.cpp entry_points_gles_ext_explicit_context_autogen.h is only added to libglesv2_entry_point_sources when angle_enable_explicit_context is set, which defaults to angle_enable_wgpu. Every use of the header in egl_stubs_getprocaddress_autogen.cpp is already guarded by ANGLE_ENABLE_EXPLICIT_CONTEXT, but the #include itself is not, so the file fails to compile whenever explicit context is disabled. Guard the include to match its uses, in both the generated file and the gen_proc_table.py template it comes from. --- scripts/gen_proc_table.py | 2 ++ src/libGLESv2/egl_stubs_getprocaddress_autogen.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/gen_proc_table.py b/scripts/gen_proc_table.py index b5381ba..258cf34 100644 --- a/scripts/gen_proc_table.py +++ b/scripts/gen_proc_table.py @@ -126,7 +126,9 @@ includes_gles = """#include "libANGLE/Thread.h" #include "libGLESv2/entry_points_gles_3_1_autogen.h" #include "libGLESv2/entry_points_gles_3_2_autogen.h" #include "libGLESv2/entry_points_gles_ext_autogen.h" +#if defined(ANGLE_ENABLE_EXPLICIT_CONTEXT) #include "libGLESv2/entry_points_gles_ext_explicit_context_autogen.h" +#endif // defined(ANGLE_ENABLE_EXPLICIT_CONTEXT) #include "platform/PlatformMethods.h" #include diff --git a/src/libGLESv2/egl_stubs_getprocaddress_autogen.cpp b/src/libGLESv2/egl_stubs_getprocaddress_autogen.cpp index 26ed284..4f4e17c 100644 --- a/src/libGLESv2/egl_stubs_getprocaddress_autogen.cpp +++ b/src/libGLESv2/egl_stubs_getprocaddress_autogen.cpp @@ -19,7 +19,9 @@ #include "libGLESv2/entry_points_gles_3_1_autogen.h" #include "libGLESv2/entry_points_gles_3_2_autogen.h" #include "libGLESv2/entry_points_gles_ext_autogen.h" +#if defined(ANGLE_ENABLE_EXPLICIT_CONTEXT) #include "libGLESv2/entry_points_gles_ext_explicit_context_autogen.h" +#endif // defined(ANGLE_ENABLE_EXPLICIT_CONTEXT) #include "platform/PlatformMethods.h" #include -- 2.43.0