mirror of
https://github.com/storytold/designcraft.git
synced 2026-10-27 11:46:51 -06:00
Two corrections to the message, both reported by CodeRabbit on #1371. switched_from being None only means this start did not switch from a backend that never showed a frame. A backend that failed on an earlier start is remembered in the record, and choose() then picks the first candidate that is not in that list -- so calling it the "first choice" misstates how it was arrived at. The line now says either "nothing has failed before" or which backends had, so the log says what happened. The comment claimed that reaching this line means WGPU_BACKEND is unset. wgpu-types returns an empty mask for an empty or unrecognised value and begin() only returns early for a non-empty one, so such a value reaches here with the variable set. The comment says that instead.