소스 검색

vulkan: Swapped out a free() that should have been an SDL_free().

Fixes (for real this time!) the Visual Studio builds.
Ryan C. Gordon 7 년 전
부모
커밋
4bd808346a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/video/SDL_vulkan_utils.c

+ 1 - 1
src/video/SDL_vulkan_utils.c

@@ -301,7 +301,7 @@ SDL_bool SDL_Vulkan_Display_CreateSurface(void *vkGetInstanceProcAddr_,
         SDL_LogDebug(SDL_LOG_CATEGORY_VIDEO, "vulkandisplay: Display: %s Native resolution: %ux%u",
                 displayProperties[displayId].displayName, extent.width, extent.height);
 
-        free(displayProperties);
+        SDL_free(displayProperties);
         displayProperties = NULL;
 
         /* Get display mode properties for the chosen display */