Skip to content

Commit

Permalink
Fix memory leak with r_cache enabled in vk renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
ensiform committed Nov 28, 2023
1 parent 21f17ed commit a825df5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderervk/tr_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -2247,16 +2247,16 @@ static void RE_Shutdown( refShutdownCode_t code ) {
if ( code != REF_KEEP_CONTEXT ) {
//R_IssuePendingRenderCommands();
R_DeleteTextures();
#ifdef USE_VULKAN
vk_release_resources();
#endif
} else {
// backup the current media

R_BackupModels();
//R_BackupShaders();
//R_BackupImages();
}
#ifdef USE_VULKAN
vk_release_resources();
#endif
}
} else if ( tr.registered ) {
//R_IssuePendingRenderCommands();
Expand Down

0 comments on commit a825df5

Please sign in to comment.