Added GL 3.1 core profile shader patching.