Skip to content

Commit 7d8720b

Browse files
committed
add pxr/imaging/garch/glApi.h as a GL loader header like glew.h that should be included first
Core USD 21.02 dropped the dependency on GLEW in favor of its own GL loader in garch.
1 parent cdff8d9 commit 7d8720b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.clang-format

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ IncludeCategories:
4343
# 8. C system headers
4444
# 9. Conditional includes
4545

46-
# 0. Glew must be included before any other GL header
46+
# 0. GL loaders must be included before any other GL header
4747
# Negative priority puts it above the default IncludeIsMainRegex
48-
- Regex: '<pxr/imaging/glf/glew.h>'
48+
- Regex: '<pxr/imaging/(garch/glApi.h|glf/glew.h)>'
4949
Priority: -1
5050

5151
# 1. Related header

0 commit comments

Comments
 (0)