From 1549598e5288b405561bf600769a8c5353441db3 Mon Sep 17 00:00:00 2001 From: Swung0x48 Date: Sat, 4 Jul 2026 08:20:39 +0800 Subject: [PATCH] [Fix] (trace-replay): request compatibility EGL profile --- tools/trace_replay/apitrace_glws_egl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/trace_replay/apitrace_glws_egl.cpp b/tools/trace_replay/apitrace_glws_egl.cpp index ecce8e13..d29b543e 100644 --- a/tools/trace_replay/apitrace_glws_egl.cpp +++ b/tools/trace_replay/apitrace_glws_egl.cpp @@ -516,7 +516,8 @@ public: attribs[index++] = EGL_CONTEXT_MINOR_VERSION_KHR; attribs[index++] = profile.major >= 3 ? profile.minor : 3; attribs[index++] = EGL_CONTEXT_OPENGL_PROFILE_MASK_KHR; - attribs[index++] = EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR; + attribs[index++] = profile.core ? EGL_CONTEXT_OPENGL_CORE_PROFILE_BIT_KHR + : EGL_CONTEXT_OPENGL_COMPATIBILITY_PROFILE_BIT_KHR; } attribs[index++] = EGL_NONE;