OpenGL: Update peaks when changing sampler variables