Browse Source

SDL_migration.cocci: Added a thing for SDL_Vulkan_CreateSurface.

Ryan C. Gordon 1 year ago
parent
commit
869257a5c1
1 changed files with 5 additions and 0 deletions
  1. 5 0
      build-scripts/SDL_migration.cocci

+ 5 - 0
build-scripts/SDL_migration.cocci

@@ -2745,3 +2745,8 @@ expression e, n, v;
 @@
 @@
 - SDL_SetWindowData(e, n, v)
 - SDL_SetWindowData(e, n, v)
 + SDL_SetProperty(SDL_GetWindowProperties(e), n, v, NULL, NULL)
 + SDL_SetProperty(SDL_GetWindowProperties(e), n, v, NULL, NULL)
+@@
+expression w, i, s;
+@@
+- SDL_Vulkan_CreateSurface(w, i, s)
++ SDL_Vulkan_CreateSurface(w, i, NULL, s)