mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 23:42:30 +00:00
d3d9/10/11/12: fix scissor parameters
This commit is contained in:
parent
e0b59f13e2
commit
7648da1413
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user