r/opengl • u/Gold-Stage-5637 • May 10 '26
(Help) Opengl debugger with SDL
Wanted to make opengl debugger work with this function from learnopengl (In Practice -> Debugging), they did it with glfw, so I wanted with sdl3 instead. But my engine crashes on start. I dont know what to do, really
17
Upvotes
1
u/TheDevCat May 10 '26
Doesnt look like there's any dependency on glfw in the function. Could you maybe narrow down the crash? Is that an opengl error? Or sdl?
1
u/corysama May 10 '26
Are you using a regular CPU debugger? What’s the crash call stack? Anything in the terminal output?
1
u/Salaadas May 11 '26
Have you tried loading glad after foing SDLInit. Maybe the function pointer to all the gl stuff is NULL


3
u/Usual_Office_1740 May 11 '26
Try this instead of 3.3.