Merge pull request #1400 from billhollings/packed-swizzle-fixes

Fix occasional crash when swizzling used but shader swizzling not enabled.