ComfyUI-3D-Pack icon indicating copy to clipboard operation
ComfyUI-3D-Pack copied to clipboard

fix wsl2 eglInitialize() failed

Open sqlpxc opened this issue 10 months ago • 1 comments

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.

sqlpxc avatar Feb 13 '25 16:02 sqlpxc

Thank you for your effort! I can confirm this is working on WSL2 Podman:

sc

YanWenKun avatar Feb 17 '25 10:02 YanWenKun