fix to smooth demo to work with GL 3.3 and higher, thanks Neil Mannall