mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-12 04:22:15 +00:00
D3D12: Use signed ints for viewport origin
Fixes black screen when crop is enabled.
This commit is contained in:
parent
a8c4d6c242
commit
984da2d624
2 changed files with 2 additions and 2 deletions
|
@ -588,7 +588,7 @@ void SetLinearCopySampler()
|
||||||
D3D::command_list_mgr->SetCommandListDirtyState(COMMAND_LIST_STATE_SAMPLERS, true);
|
D3D::command_list_mgr->SetCommandListDirtyState(COMMAND_LIST_STATE_SAMPLERS, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetViewportAndScissor(u32 top_left_x, u32 top_left_y, u32 width, u32 height, float min_depth, float max_depth)
|
void SetViewportAndScissor(int top_left_x, int top_left_y, int width, int height, float min_depth, float max_depth)
|
||||||
{
|
{
|
||||||
D3D12_VIEWPORT viewport = {
|
D3D12_VIEWPORT viewport = {
|
||||||
static_cast<float>(top_left_x),
|
static_cast<float>(top_left_x),
|
||||||
|
|
|
@ -74,7 +74,7 @@ void ShutdownUtils();
|
||||||
void SetPointCopySampler();
|
void SetPointCopySampler();
|
||||||
void SetLinearCopySampler();
|
void SetLinearCopySampler();
|
||||||
|
|
||||||
void SetViewportAndScissor(u32 top_left_x, u32 top_left_y, u32 width, u32 height, float min_depth = D3D12_MIN_DEPTH, float max_depth = D3D12_MAX_DEPTH);
|
void SetViewportAndScissor(int top_left_x, int top_left_y, int width, int height, float min_depth = D3D12_MIN_DEPTH, float max_depth = D3D12_MAX_DEPTH);
|
||||||
|
|
||||||
void DrawShadedTexQuad(D3DTexture2D* texture,
|
void DrawShadedTexQuad(D3DTexture2D* texture,
|
||||||
const D3D12_RECT* source,
|
const D3D12_RECT* source,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue