fixed d3d9 empty frame after resize