mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fixed gfx scissoring on D3D drivers (#14793)
Zero width/height is valid, just means that it won't draw anything between those begin/end calls
This commit is contained in:
parent
955431b354
commit
f2f7e2f8ee
@ -249,7 +249,7 @@ void gfx_display_d3d10_scissor_begin(void *data,
|
||||
D3D10_RECT rect;
|
||||
d3d10_video_t *d3d10 = (d3d10_video_t*)data;
|
||||
|
||||
if (!d3d10 || !width || !height)
|
||||
if (!d3d10)
|
||||
return;
|
||||
|
||||
rect.left = x;
|
||||
|
@ -279,7 +279,7 @@ void gfx_display_d3d11_scissor_begin(void *data,
|
||||
D3D11_RECT rect;
|
||||
d3d11_video_t *d3d11 = (d3d11_video_t*)data;
|
||||
|
||||
if (!d3d11 || !width || !height)
|
||||
if (!d3d11)
|
||||
return;
|
||||
|
||||
rect.left = x;
|
||||
|
@ -254,7 +254,7 @@ void gfx_display_d3d12_scissor_begin(void *data,
|
||||
D3D12_RECT rect;
|
||||
d3d12_video_t *d3d12 = (d3d12_video_t*)data;
|
||||
|
||||
if (!d3d12 || !width || !height)
|
||||
if (!d3d12)
|
||||
return;
|
||||
|
||||
rect.left = x;
|
||||
|
@ -272,7 +272,7 @@ void gfx_display_d3d9_cg_scissor_begin(
|
||||
RECT rect;
|
||||
d3d9_video_t *d3d9 = (d3d9_video_t*)data;
|
||||
|
||||
if (!d3d9 || !width || !height)
|
||||
if (!d3d9)
|
||||
return;
|
||||
|
||||
rect.left = x;
|
||||
|
@ -279,7 +279,7 @@ void gfx_display_d3d9_hlsl_scissor_begin(
|
||||
RECT rect;
|
||||
d3d9_video_t *d3d9 = (d3d9_video_t*)data;
|
||||
|
||||
if (!d3d9 || !width || !height)
|
||||
if (!d3d9)
|
||||
return;
|
||||
|
||||
rect.left = x;
|
||||
|
Loading…
x
Reference in New Issue
Block a user