gl: add break after destroy constant color operand
gl: fix bug in vertex shader destroy
gl: free data if result multisampling fails in upload image