mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-03-30 13:33:42 +08:00
fix for mac
This commit is contained in:
parent
333ff2e8a0
commit
54ff5464bd
@ -40,11 +40,11 @@ OpenGL.USE_ACCELERATE = False
|
|||||||
|
|
||||||
|
|
||||||
def _patch_find_library():
|
def _patch_find_library():
|
||||||
"""On Windows, PyOpenGL's EGL platform looks for 'EGL' and 'GLESv2' by
|
"""PyOpenGL's EGL platform looks for 'EGL' and 'GLESv2' by short name
|
||||||
name via ctypes.util.find_library, but ANGLE ships as 'libEGL' and
|
via ctypes.util.find_library, but ANGLE ships as 'libEGL' and
|
||||||
'libGLESv2'. Patch find_library to return the full ANGLE paths so
|
'libGLESv2'. Patch find_library to return the full ANGLE paths so
|
||||||
PyOpenGL loads the same DLLs we pre-loaded (same handle, no duplicates)."""
|
PyOpenGL loads the same libraries we pre-loaded."""
|
||||||
if sys.platform != "win32":
|
if sys.platform == "linux":
|
||||||
return
|
return
|
||||||
import ctypes.util
|
import ctypes.util
|
||||||
_orig = ctypes.util.find_library
|
_orig = ctypes.util.find_library
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user