From ac4a5ba8532b9c8e9ea5f0241d3b47beefff5772 Mon Sep 17 00:00:00 2001 From: sunrisepeak Date: Thu, 4 Jun 2026 07:20:04 +0800 Subject: [PATCH] compat.glx-runtime: declare provides= (strong provider claim) With mcpp's provides= support (mcpp#110), the host-GL passthrough package explicitly claims fulfilment of opengl.glx.driver / x11.display, so provider selection (why/doctor/resolution.json) attributes the capabilities to it rather than to weak capability-listing consumers like compat.glfw. Backward-compatible: older mcpp ignores the key. --- pkgs/c/compat.glx-runtime.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/c/compat.glx-runtime.lua b/pkgs/c/compat.glx-runtime.lua index d89b304..521960b 100644 --- a/pkgs/c/compat.glx-runtime.lua +++ b/pkgs/c/compat.glx-runtime.lua @@ -29,6 +29,7 @@ package = { library_dirs = { "mcpp_generated/glx_runtime/lib" }, dlopen_libs = { "libGLX.so.0", "libGL.so.1", "libGL.so" }, capabilities = { "x11.display", "opengl.glx.driver" }, + provides = { "opengl.glx.driver", "x11.display" }, }, deps = { ["compat.xext"] = "1.3.7",