supertux icon indicating copy to clipboard operation
supertux copied to clipboard

Migrate from GLEW to libepoxy or GLAD

Open cryptomilk opened this issue 7 months ago • 2 comments

Hi,

we are currently trying to get rid of GLEW in Fedora as it isn't maintained anymore. Also GLEW with the last release only supports GLX and not EGL.

There are two ways moving forward:

With both of them migration should be straight forward.

Thanks for considering!

cryptomilk avatar Apr 23 '25 06:04 cryptomilk

I would tend to GLAD (glad2) as it has zero external dependencies (it just generates one source file and a few header files that can be integrated in the project).

libeproxy seems to have no support for CMake?

mariob92 avatar Apr 24 '25 13:04 mariob92

I think both are fine. libepoxy only ships a pkgconfig file, it isn't hard to write your own FindEpoxy.cmake module with pkgconfig.

cryptomilk avatar Apr 24 '25 13:04 cryptomilk

i would suggest to use in-tree glad and passing SDL_GL_GetProcAddress as loader, it would work on all platforms and on Linux SDL decides whether to use GLX or EGL

monzonit3 avatar Jul 10 '25 11:07 monzonit3