11a7b112cb
Do not override the handle number with 0 if we fail to create a new resource. Also make sure to store the handle consistently in an uint32_t. CID: 1644460 Overflowed constant Signed-off-by: Corentin Noël <corentin.noel@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34816>