The command buffer handle was not reset after being freed on window resize, leading to a segfault when the stale handle was used. (cherry picked from commit 65748fb8f3)
65748fb8f3
Fixes #1477. (cherry picked from commit d834f01ca4)
d834f01ca4