Forráskód Böngészése

Examples: SDL3+OpenGL: Update for API changes: SDL_GL_DeleteContext() renamed to SDL_GL_DestroyContext().

ocornut 1 éve
szülő
commit
c3c90b49e0
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      examples/example_sdl3_opengl3/main.cpp

+ 1 - 1
examples/example_sdl3_opengl3/main.cpp

@@ -196,7 +196,7 @@ int main(int, char**)
     ImGui_ImplSDL3_Shutdown();
     ImGui::DestroyContext();
 
-    SDL_GL_DeleteContext(gl_context);
+    SDL_GL_DestroyContext(gl_context);
     SDL_DestroyWindow(window);
     SDL_Quit();