Boolean uniform needs to be 4bytes long for opengl. Use "int" for every bool you want to pass as a uniform.