(D3D) check_window - check if d3d_quit has been set to true, and if so,
set quit pointer value to true