Some const-correctness cleanups, which may have surfaced a silent bug when making NUM_SAMPLES just a smidge too big (I.E. exactly equal to total GPU ram).
Cut this down to work on my GT650M...