Work around '#directive in the middle of a shader' error on Mesa