core: noise and perlin_noise shouldn't perform a gpu->cpu sync

This commit is contained in:
Nathan Adams 2023-03-24 17:02:33 +01:00
parent 2b483a5953
commit b035c7f24e
1 changed files with 2 additions and 2 deletions

View File

@ -180,7 +180,7 @@ pub fn noise<'gc>(
if target.disposed() {
return;
}
let target = target.sync();
let (target, _) = target.overwrite_cpu_pixels_from_gpu(context);
let mut write = target.write(context.gc_context);
let true_seed = if seed <= 0 {
@ -253,7 +253,7 @@ pub fn perlin_noise<'gc>(
if target.disposed() {
return;
}
let target = target.sync();
let (target, _) = target.overwrite_cpu_pixels_from_gpu(context);
let mut write = target.write(context.gc_context);
let turb = Turbulence::from_seed(random_seed);