small optimizations, shader link crash compromise