mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
Check if device is NULL inside d3d_set_resize
This commit is contained in:
parent
b4b3574665
commit
9f616cca07
@ -52,6 +52,9 @@ static bool gfx_ctx_d3d_set_resize(void *data, unsigned new_width, unsigned new_
|
|||||||
{
|
{
|
||||||
d3d_video_t *d3d = (d3d_video_t*)curD3D;
|
d3d_video_t *d3d = (d3d_video_t*)curD3D;
|
||||||
|
|
||||||
|
if (!d3d->dev)
|
||||||
|
return;
|
||||||
|
|
||||||
/* No changes? */
|
/* No changes? */
|
||||||
if (new_width == d3d->video_info.width && new_height == d3d->video_info.height)
|
if (new_width == d3d->video_info.width && new_height == d3d->video_info.height)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user