diff --git a/renderdoc/driver/vulkan/vk_shader_cache.cpp b/renderdoc/driver/vulkan/vk_shader_cache.cpp index 25f9de36b..e9d260cb0 100644 --- a/renderdoc/driver/vulkan/vk_shader_cache.cpp +++ b/renderdoc/driver/vulkan/vk_shader_cache.cpp @@ -789,9 +789,11 @@ void VulkanShaderCache::MakeGraphicsPipelineInfo(VkGraphicsPipelineCreateInfo &p VK_STRUCTURE_TYPE_PIPELINE_SAMPLE_LOCATIONS_STATE_CREATE_INFO_EXT, }; - if(m_pDriver->GetExtensions(GetRecord(m_Device)).ext_EXT_sample_locations) + if(m_pDriver->GetExtensions(GetRecord(m_Device)).ext_EXT_sample_locations && + pipeInfo.sampleLocations.enabled) { sampleLoc.sampleLocationsEnable = pipeInfo.sampleLocations.enabled; + sampleLoc.sampleLocationsInfo.sType = VK_STRUCTURE_TYPE_SAMPLE_LOCATIONS_INFO_EXT; sampleLoc.sampleLocationsInfo.sampleLocationGridSize = pipeInfo.sampleLocations.gridSize; sampleLoc.sampleLocationsInfo.sampleLocationsPerPixel = pipeInfo.rasterizationSamples; sampleLoc.sampleLocationsInfo.sampleLocationsCount =