d3d12: ignore 0 sized rt dma copy

This commit is contained in:
Jake 2017-08-03 23:52:04 -05:00 committed by kd-11
parent 7ecf6cb014
commit 4d5f98017f

View File

@ -298,6 +298,9 @@ void D3D12GSRender::copy_render_target_to_dma_location()
int clip_w = rsx::method_registers.surface_clip_width(); int clip_w = rsx::method_registers.surface_clip_width();
int clip_h = rsx::method_registers.surface_clip_height(); int clip_h = rsx::method_registers.surface_clip_height();
if (clip_w == 0 || clip_h == 0)
return;
size_t depth_row_pitch = align(clip_w * 4, 256); size_t depth_row_pitch = align(clip_w * 4, 256);
size_t depth_buffer_offset_in_heap = 0; size_t depth_buffer_offset_in_heap = 0;