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:
retroNUC 2023-01-02 09:44:09 +00:00 committed by GitHub
parent 955431b354
commit f2f7e2f8ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;