This was caused by an emtpy VBO being bound as a texture. This is undefined behavior on some implementation.