[PATCH 3/6] wined3d: Handle WINED3D_LOCATION_DISCARDED in wined3d_buffer_get_memory().