mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-19 08:28:21 +01:00
Fix traditional render tries to load bluenoise
This commit is contained in:
parent
4b605810f3
commit
c60d851ad8
@ -176,8 +176,9 @@ qboolean R_VkTexturesInit( void ) {
|
||||
}
|
||||
}
|
||||
|
||||
loadBlueNoiseTextures();
|
||||
|
||||
if (vk_core.rtx)
|
||||
loadBlueNoiseTextures();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -186,8 +187,9 @@ static void textureDestroy( unsigned int index );
|
||||
void R_VkTexturesShutdown( void ) {
|
||||
R_VkTexturesSkyboxUnload();
|
||||
R_VkTextureDestroy(-1, &g_vktextures.cubemap_placeholder);
|
||||
R_VkTextureDestroy(-1, &g_vktextures.blue_noise);
|
||||
|
||||
if (vk_core.rtx)
|
||||
R_VkTextureDestroy(-1, &g_vktextures.blue_noise);
|
||||
|
||||
for (int i = 0; i < COUNTOF(g_vktextures.samplers); ++i) {
|
||||
if (g_vktextures.samplers[i].sampler != VK_NULL_HANDLE)
|
||||
vkDestroySampler(vk_core.device, g_vktextures.samplers[i].sampler, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user