ComfyUI-3D-Pack
ComfyUI-3D-Pack copied to clipboard
fix wsl2 eglInitialize() failed
I recently tried to develop in wsl2, but no matter what, I couldn't get it to work, eglInitialize() failed
So I searched for the cause of the error, and found that it was caused by nvdiffrast, so I checked nvidia documentation, and found that OpenGL-CUDA Interop is not yet supported.
So I tried to change RasterizeGLContext to RasterizeCudaContext, and it worked fine!
I think RasterizeCudaContext should be the default behavior, because it seems to be more compatible.
Thank you for your effort! I can confirm this is working on WSL2 Podman: