Fix crash from lastShader pointer = 0xcdcdcdcd
Merge pull request #353 from KentuckyCompass/crashfix1

Fix crash from lastShader pointer = 0xcdcdcdcd