d3d9/10/11/12: fix scissor parameters

This commit is contained in:
Brad Parker 2019-04-10 00:22:36 -04:00
parent e0b59f13e2
commit 7648da1413
4 changed files with 16 additions and 16 deletions

View File

@ -297,10 +297,10 @@ void menu_display_d3d10_scissor_end(video_frame_info_t *video_info)
if (!d3d10)
return;
rect.left = d3d10->vp.x;
rect.top = d3d10->vp.y;
rect.right = d3d10->vp.width;
rect.bottom = d3d10->vp.height;
rect.left = 0;
rect.top = 0;
rect.right = video_info->width;
rect.bottom = video_info->height;
D3D10SetScissorRects(d3d10->device, 1, &rect);
}

View File

@ -296,10 +296,10 @@ void menu_display_d3d11_scissor_end(video_frame_info_t *video_info)
if (!d3d11)
return;
rect.left = d3d11->vp.x;
rect.top = d3d11->vp.y;
rect.right = d3d11->vp.width;
rect.bottom = d3d11->vp.height;
rect.left = 0;
rect.top = 0;
rect.right = video_info->width;
rect.bottom = video_info->height;
D3D11SetScissorRects(d3d11->context, 1, &rect);
}

View File

@ -317,10 +317,10 @@ void menu_display_d3d12_scissor_end(video_frame_info_t *video_info)
if (!d3d12)
return;
rect.left = d3d12->vp.x;
rect.top = d3d12->vp.y;
rect.right = d3d12->vp.width;
rect.bottom = d3d12->vp.height;
rect.left = 0;
rect.top = 0;
rect.right = video_info->width;
rect.bottom = video_info->height;
D3D12RSSetScissorRects(d3d12->queue.cmd, 1, &rect);
}

View File

@ -331,10 +331,10 @@ void menu_display_d3d9_scissor_end(video_frame_info_t *video_info)
if (!d3d9)
return;
rect.left = d3d9->vp.x;
rect.top = d3d9->vp.y;
rect.right = d3d9->vp.width;
rect.bottom = d3d9->vp.height;
rect.left = 0;
rect.top = 0;
rect.right = video_info->width;
rect.bottom = video_info->height;
d3d9_set_scissor_rect(d3d9->dev, &rect);
}