Skip to content

Commit 3858c45

Browse files
davidgyupixar-oss
authored andcommitted
[build_usd.py] Disabled GL for OpenSubdiv on macOS
Use Metal shader source for macOS and all Apple embedded systems. Contribution: Dhruv Govil, Thor Hjalmarsson Fixes #2949 (Internal change: 2322695)
1 parent 456b705 commit 3858c45

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

build_scripts/build_usd.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,6 +1361,10 @@ def InstallOpenSubdiv(context, force, buildArgs):
13611361
'-DNO_TBB=ON',
13621362
]
13631363

1364+
# Use Metal for macOS and all Apple embedded systems.
1365+
if MacOS():
1366+
extraArgs.append('-DNO_OPENGL=ON')
1367+
13641368
# Add on any user-specified extra arguments.
13651369
extraArgs += buildArgs
13661370

0 commit comments

Comments
 (0)