From 803fd6d52639b55071a175d47d34d72ff9fee162 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 27 Aug 2017 19:32:08 -0700 Subject: [PATCH] Use SDL_Vulkan_GetDrawableSize() instead of SDL_GL_GetDrawableSize() --- test/testvulkan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testvulkan.c b/test/testvulkan.c index 7eeec7b40..6be8ec332 100644 --- a/test/testvulkan.c +++ b/test/testvulkan.c @@ -713,7 +713,7 @@ static SDL_bool createSwapchain(void) } // get size - SDL_GL_GetDrawableSize(state->windows[0], &w, &h); + SDL_Vulkan_GetDrawableSize(state->windows[0], &w, &h); vulkanContext.swapchainSize.width = w; vulkanContext.swapchainSize.height = h; if(w == 0 || h == 0) @@ -1102,7 +1102,7 @@ static SDL_bool render(void) getVulkanResultString(result)); quit(2); } - SDL_GL_GetDrawableSize(state->windows[0], &w, &h); + SDL_Vulkan_GetDrawableSize(state->windows[0], &w, &h); if(w != (int)vulkanContext.swapchainSize.width || h != (int)vulkanContext.swapchainSize.height) { return createNewSwapchainAndSwapchainSpecificStuff(); @@ -1159,7 +1159,7 @@ int main(int argc, char *argv[]) SDL_Log("Screen BPP : %d\n", SDL_BITSPERPIXEL(mode.format)); SDL_GetWindowSize(state->windows[0], &dw, &dh); SDL_Log("Window Size : %d,%d\n", dw, dh); - SDL_GL_GetDrawableSize(state->windows[0], &dw, &dh); + SDL_Vulkan_GetDrawableSize(state->windows[0], &dw, &dh); SDL_Log("Draw Size : %d,%d\n", dw, dh); SDL_Log("\n");