mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
libs/vkd3d: Ignore draw calls when pipeline state is not set.
This commit is contained in:
parent
a1082ec954
commit
f503954a77
@ -514,8 +514,7 @@ static HRESULT vkd3d_begin_command_buffer(struct d3d12_command_list *list)
|
|||||||
|
|
||||||
list->is_recording = TRUE;
|
list->is_recording = TRUE;
|
||||||
|
|
||||||
if (list->pipeline_state)
|
ID3D12GraphicsCommandList_SetPipelineState(&list->ID3D12GraphicsCommandList_iface, list->pipeline_state);
|
||||||
ID3D12GraphicsCommandList_SetPipelineState(&list->ID3D12GraphicsCommandList_iface, list->pipeline_state);
|
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
@ -1292,6 +1291,12 @@ static void STDMETHODCALLTYPE d3d12_command_list_DrawInstanced(ID3D12GraphicsCom
|
|||||||
iface, vertex_count_per_instance, instance_count,
|
iface, vertex_count_per_instance, instance_count,
|
||||||
start_vertex_location, start_instance_location);
|
start_vertex_location, start_instance_location);
|
||||||
|
|
||||||
|
if (!list->state)
|
||||||
|
{
|
||||||
|
WARN("Pipeline state is NULL. Ignoring draw call.\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
vk_procs = &list->device->vk_procs;
|
vk_procs = &list->device->vk_procs;
|
||||||
|
|
||||||
if (!d3d12_command_list_update_current_framebuffer(list, vk_procs))
|
if (!d3d12_command_list_update_current_framebuffer(list, vk_procs))
|
||||||
|
Loading…
Reference in New Issue
Block a user