Browse Source

vulkan: remove unneeded Module::getInstance call

niki 2 years ago
parent
commit
74027ad780
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/modules/graphics/vulkan/Shader.cpp

+ 1 - 2
src/modules/graphics/vulkan/Shader.cpp

@@ -234,8 +234,7 @@ void Shader::unloadVolatile()
 		}
 	}
 
-	auto gfx = Module::getInstance<Graphics>(Module::M_GRAPHICS);
-	gfx->queueCleanUp([shaderModules = std::move(shaderModules), device = device, descriptorSetLayout = descriptorSetLayout, pipelineLayout = pipelineLayout, descriptorPools = descriptorPools, computePipeline = computePipeline](){
+	vgfx->queueCleanUp([shaderModules = std::move(shaderModules), device = device, descriptorSetLayout = descriptorSetLayout, pipelineLayout = pipelineLayout, descriptorPools = descriptorPools, computePipeline = computePipeline](){
 		for (const auto pool : descriptorPools)
 			vkDestroyDescriptorPool(device, pool, nullptr);
 		for (const auto shaderModule : shaderModules)