Use SDL_Vulkan_GetDrawableSize() instead of SDL_GL_GetDrawableSize()
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Aug 2017 19:32:08 -0700
changeset 113661e4fe1678a00
parent 11365 a9bd2625fa01
child 11367 e8fc755a89e8
Use SDL_Vulkan_GetDrawableSize() instead of SDL_GL_GetDrawableSize()
test/testvulkan.c
     1.1 --- a/test/testvulkan.c	Sun Aug 27 22:15:57 2017 -0400
     1.2 +++ b/test/testvulkan.c	Sun Aug 27 19:32:08 2017 -0700
     1.3 @@ -713,7 +713,7 @@
     1.4      }
     1.5  
     1.6      // get size
     1.7 -    SDL_GL_GetDrawableSize(state->windows[0], &w, &h);
     1.8 +    SDL_Vulkan_GetDrawableSize(state->windows[0], &w, &h);
     1.9      vulkanContext.swapchainSize.width = w;
    1.10      vulkanContext.swapchainSize.height = h;
    1.11      if(w == 0 || h == 0)
    1.12 @@ -1102,7 +1102,7 @@
    1.13                       getVulkanResultString(result));
    1.14          quit(2);
    1.15      }
    1.16 -    SDL_GL_GetDrawableSize(state->windows[0], &w, &h);
    1.17 +    SDL_Vulkan_GetDrawableSize(state->windows[0], &w, &h);
    1.18      if(w != (int)vulkanContext.swapchainSize.width || h != (int)vulkanContext.swapchainSize.height)
    1.19      {
    1.20          return createNewSwapchainAndSwapchainSpecificStuff();
    1.21 @@ -1159,7 +1159,7 @@
    1.22      SDL_Log("Screen BPP    : %d\n", SDL_BITSPERPIXEL(mode.format));
    1.23      SDL_GetWindowSize(state->windows[0], &dw, &dh);
    1.24      SDL_Log("Window Size   : %d,%d\n", dw, dh);
    1.25 -    SDL_GL_GetDrawableSize(state->windows[0], &dw, &dh);
    1.26 +    SDL_Vulkan_GetDrawableSize(state->windows[0], &dw, &dh);
    1.27      SDL_Log("Draw Size     : %d,%d\n", dw, dh);
    1.28      SDL_Log("\n");
    1.29