[PATCH 2/5] wined3d: Make the viewport state dynamic.