diff --git a/src/vulkan/runtime/vk_graphics_state.c b/src/vulkan/runtime/vk_graphics_state.c index 25d955d6d39..cb848c736bf 100644 --- a/src/vulkan/runtime/vk_graphics_state.c +++ b/src/vulkan/runtime/vk_graphics_state.c @@ -782,7 +782,7 @@ vk_multisample_sample_locations_state_init( assert(ms->sample_locations == NULL); if (!IS_DYNAMIC(MS_SAMPLE_LOCATIONS)) { - if (ms->sample_locations_enable) { + if (sl_info && ms->sample_locations_enable) { vk_sample_locations_state_init(sl, &sl_info->sampleLocationsInfo); ms->sample_locations = sl; } else if (!IS_DYNAMIC(MS_RASTERIZATION_SAMPLES)) {