# GPU rendering error on MacOS

**URL:** <https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528>\
**Category:** Development\
**Tags:** code\
**Created:** [May 24, 2023, 3:58am UTC](https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528 "2023-05-24T03:58:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pisces2018](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pisces2018/32/7063_2.png) [@Pisces2018](https://discourse.vtk.org/u/Pisces2018)\
**Post date:** [May 24, 2023, 3:58am UTC](https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528/1 "2023-05-24T03:58:51Z")

</div>

When the 3D window was first opened, it rendered normal in default GPU mode. When I perform the cut bedplate operation(just change the pixel value in the volume data), the render is abnormal.  
Windows OS, render is normal in GPU or CPU mode; MacOS, CPU mode normal, GPU mode abnormal.  
In mac m1, render normal, but in another mac, render abnormal.

 ![m1](https://discourse.vtk.org/uploads/default/original/2X/8/870c6d70a46707cd2df43b5de99adae4031b23ea.png)  
 ![no m1](https://discourse.vtk.org/uploads/default/original/2X/d/d8366ae0ebf36b65f61832d09495aad2ed528e99.png)  

[/uploads/default/original/2X/6/627f865d76ef676de916a772dc87633a96f43316.mp4](https://discourse.vtk.org/uploads/default/original/2X/6/627f865d76ef676de916a772dc87633a96f43316.mp4)

---

<div class="post-metadata">

**Author:** ![Pisces2018](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pisces2018/32/7063_2.png) [@Pisces2018](https://discourse.vtk.org/u/Pisces2018)\
**Post date:** [May 25, 2023, 4:17am UTC](https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528/2 "2023-05-25T04:17:19Z")

</div>

The bedplate should be removed was striped, and the overhead slice data ran to the leg position.

 ![WeChat Image_20230525121424](https://discourse.vtk.org/uploads/default/original/2X/a/a6556fe8c8c4649064dd2e9f83a99cd19e45cab1.jpeg)

---

<div class="post-metadata">

**Author:** ![Pisces2018](https://discourse.vtk.org/user_avatar/discourse.vtk.org/pisces2018/32/7063_2.png) [@Pisces2018](https://discourse.vtk.org/u/Pisces2018)\
**Post date:** [May 29, 2023, 7:17am UTC](https://discourse.vtk.org/t/gpu-rendering-error-on-macos/11528/3 "2023-05-29T07:17:49Z")

</div>

End.  
Because the volume data modified, before you set the data, need to add  
`volumeMapper->ReleaseGraphicsResources(pWin);`  
But WinOS and the other mac m1 behave properly, I don’t know why.
