Fixed bug on real time demo with Intel GPU.

Good to merge.