wined3d: Move drawable->sysmem specific code to its special function.