Józef Kucia : wined3d: Reduce nesting in texture2d_load_sysmem().