Check if device is NULL inside d3d_set_resize

This commit is contained in:
twinaphex 2016-01-07 01:10:37 +01:00
parent b4b3574665
commit 9f616cca07

View File

@ -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;
if (!d3d->dev)
return;
/* No changes? */
if (new_width == d3d->video_info.width && new_height == d3d->video_info.height)
return false;