Skip to content

Commit

Permalink
fix error in examples/vcl_opencl_fractals_one_argument/main.v (fix ma…
Browse files Browse the repository at this point in the history
…in V CI)
  • Loading branch information
spytheman committed Jun 10, 2024
1 parent bcf4013 commit 16a2541
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/vcl_opencl_fractals_one_argument/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ fn run_kernel(kernel_name string) ! {
}

// get image data from buffer and save it
img := img.data()!
iimg := img.data()!
stbi.stbi_write_bmp(os.join_path(output_dir, '${kernel_name}.bmp'), width, height,
4, img.data) or { return err }
4, iimg.data) or { return err }
stbi.stbi_write_png(os.join_path(output_dir, '${kernel_name}.png'), width, height,
4, img.data, 0) or { return err }
4, iimg.data, 0) or { return err }
}

fn main() {
Expand Down

0 comments on commit 16a2541

Please sign in to comment.