mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[win] Update for moved vulkan viewport
I forgot to do a windows test build.
This commit is contained in:
parent
2798b5fd58
commit
3f575ab025
1 changed files with 2 additions and 4 deletions
|
@ -155,10 +155,8 @@ win_vulkan_create_surface (vulkan_ctx_t *ctx)
|
|||
.hwnd = pres->window,
|
||||
};
|
||||
|
||||
int width = viddef.width;
|
||||
int height = viddef.height;
|
||||
ctx->viewport = (VkViewport) { 0, 0, width, height, 0, 1 };
|
||||
ctx->scissor = (VkRect2D) { {0, 0}, {width, height} };
|
||||
ctx->window_width = viddef.width;
|
||||
ctx->window_height = viddef.height;
|
||||
|
||||
if (pres->vkCreateWin32SurfaceKHR (inst, &createInfo, 0, &surface)
|
||||
!= VK_SUCCESS) {
|
||||
|
|
Loading…
Reference in a new issue