video: Rename SDL_GL_DeleteContext to SDL_GL_DestroyContext.

Turns out that there isn't a strong OpenGL naming convention for "Delete" ...
WGL offers "wglDeleteContext" but the GLX equivalent is "glxDestroyContext"
and then EGL sealed the deal by going with Destroy as well! Since it matches
SDL3 naming conventions (Create/Destroy), we're renaming it.

Fixes #10197.
This commit is contained in:
Ryan C. Gordon committed 2024-07-10 15:54:08 -04:00
1 parent 29b0076659
commit af2dbf3ff3
16 files changed
+34 -24

No files matched your search

+1 -1
View File
@@ -63,7 +63,7 @@ static void quit(int rc)
{
if (context) {
/* SDL_GL_MakeCurrent(0, NULL); */ /* doesn't do anything */
SDL_GL_DeleteContext(context);
SDL_GL_DestroyContext(context);
}
SDLTest_CommonQuit(state);
/* Let 'main()' return normally */