mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-17 01:21:12 +00:00
remove window save code
This commit is contained in:
parent
da38e2a8f8
commit
ca79fc78a6
3 changed files with 6 additions and 10 deletions
|
@ -323,6 +323,6 @@ IMPLEMENTATION SPECIFIC FUNCTIONS
|
|||
====================================================================
|
||||
*/
|
||||
|
||||
qboolean Vkimp_CreateSurface(void);
|
||||
qboolean Vkimp_CreateSurface(SDL_Window *window);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1724,7 +1724,7 @@ qboolean QVk_Init(SDL_Window *window)
|
|||
if (vk_validation->value)
|
||||
QVk_CreateValidationLayers();
|
||||
|
||||
if (!Vkimp_CreateSurface())
|
||||
if (!Vkimp_CreateSurface(window))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -1283,8 +1283,6 @@ qboolean R_SetMode (void)
|
|||
return true;
|
||||
}
|
||||
|
||||
static SDL_Window *window = NULL;
|
||||
|
||||
/*
|
||||
===============
|
||||
R_Init
|
||||
|
@ -1333,8 +1331,6 @@ static void R_ShutdownContext( void )
|
|||
|
||||
// Shutdown Vulkan subsystem
|
||||
QVk_Shutdown();
|
||||
|
||||
window = NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1561,14 +1557,14 @@ R_InitContext(void *win)
|
|||
{
|
||||
char title[40] = {0};
|
||||
|
||||
if(win == NULL)
|
||||
SDL_Window *window = (SDL_Window *)win;
|
||||
|
||||
if(window == NULL)
|
||||
{
|
||||
R_Printf(PRINT_ALL, "%s() must not be called with NULL argument!", __func__);
|
||||
return false;
|
||||
}
|
||||
|
||||
window = (SDL_Window *)win;
|
||||
|
||||
/* Window title - set here so we can display renderer name in it */
|
||||
snprintf(title, sizeof(title), "Yamagi Quake II %s - Vulkan Render", YQ2VERSION);
|
||||
SDL_SetWindowTitle(window, title);
|
||||
|
@ -1583,7 +1579,7 @@ R_InitContext(void *win)
|
|||
return true;
|
||||
}
|
||||
|
||||
qboolean Vkimp_CreateSurface()
|
||||
qboolean Vkimp_CreateSurface(SDL_Window *window)
|
||||
{
|
||||
if (!SDL_Vulkan_CreateSurface(window, vk_instance, &vk_surface))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue