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