Use GLAD for OpenGL loading instead of GLEW.

This allows us to pick GLX on X11 and EGL on Wayland
at runtime when building with wxWidgets 3.3.2+

GLEW only allowed to choose between GLX/EGL at compile time.

This also removes KICAD_USE_EGL option, KiCad will use
whatever wxWidgets was built with.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/20647
This commit is contained in:
Alex Shvartzkop
2026-02-22 14:56:40 +03:00
committed by dsa-t
parent b61fa22a50
commit 3fa40e05dc
72 changed files with 33604 additions and 86173 deletions
+1 -1
View File
@@ -20,7 +20,7 @@
#include <singleton.h>
#include <advanced_config.h>
#include <bs_thread_pool.hpp>
#include <gal/opengl/gl_context_mgr.h>
#include <kicad_gl/gl_context_mgr.h>
#include <thread_pool.h>