Cannot use with pyrender
agnJason opened this issue · comments
import pyrender
import nvdiffrast.torch as dr
glctx = dr.RasterizeGLContext()
raise segmentation fault
Creating the OpenGL rasterizer context before importing pyrender may help.
Alternatively, consider using RasterizeCudaContext
instead of RasterizeGLContext
. The Cuda rasterizer does not use OpenGL at all, so there won't be a conflict with pyrender.
Thanks. I got it!