hanayik / niivue

a WebGL2 based NIFTI volume viewer.
https://hanayik.github.io/niivue
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

merge in 3D render divide by zero fix #87

Closed hanayik closed 3 years ago

hanayik commented 3 years ago

fixes 3D render crashes on some devices (so far only ios had issues). closes #83.

I have tested that this resolved the ios crash by loading many different images and manipulating the images while in 3D mode.

also added console logging for GPU info. On ios devices (my ipad) this just reports "apple inc. Apple GPU", but other devices seem to report more verbose info such as my macbook pro:

gpu vendor:  ATI Technologies Inc.
gpu renderer:  AMD Radeon Pro 560X OpenGL Engine