diff --git a/gfx/d3d/d3d.cpp b/gfx/d3d/d3d.cpp index 31c6a72502..9bb04b9acc 100644 --- a/gfx/d3d/d3d.cpp +++ b/gfx/d3d/d3d.cpp @@ -498,7 +498,7 @@ static bool d3d_alive(void *data) { d3d->should_resize = true; gfx_ctx_set_resize(temp_width, temp_height); - d3d_restore(curD3D); + d3d_restore(d3d); } ret = !quit;