Fix previous half-baked commit
Fix incorrect uniform setting in examples/gpu