e4fbb200fc
If num_records==0, this conversion doesn't work. We should just keep it at zero. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Gitlab: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5007 Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11642>