Still crashing. It's randomly giving me one of these 3 now:
GL_INVALID_OPERATION - utils/shader.c:447
GL_INVALID_OPERATION - utils/texture.c:814
Log found for 'masked_gbuffer':
0:8(1): error: #extension directive is not allowed in the middle of a shader
masked_gbuffer -> fragment shader!