My system uses adaptive vsync by default, which means SDL_GL_GetSwapInterval returns -1, which go-sdl's errorFromInt() treated as an error. It couldn't get an error from SDL so it gave me "Unknown error (probably using old version of SDL2 and the function called is not supported?)"
(Note that SDL_GL_SetSwapInterval is correctly mapped, and a -1 there means an actual error)
My system uses adaptive vsync by default, which means SDL_GL_GetSwapInterval returns -1, which go-sdl's errorFromInt() treated as an error. It couldn't get an error from SDL so it gave me "Unknown error (probably using old version of SDL2 and the function called is not supported?)"
(Note that SDL_GL_SetSwapInterval is correctly mapped, and a -1 there means an actual error)