Way to much editing

So, I was reading a tutorial on linking a shader into the program, and
the resultant code it gave me needed about 100 changes to even compile.

There were mismatched types, null pointers, dereferenced pointers, and
an overall bad style used in the whole thing.

Most of this was just guess and check, but it worked!