Skip to content

Commit

Permalink
[Glf] Init GL Api before processing context caps
Browse files Browse the repository at this point in the history
This change makes sure that the Garch GL Api loader
is initialized before GlfContextCaps queries GL to
inspect the GL context capabilities. Client code does
not have to know which GL loader to initialize.

(Internal change: 2130563)
  • Loading branch information
davidgyu authored and pixar-oss committed Dec 16, 2020
1 parent bb34a84 commit 4034139
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pxr/imaging/glf/contextCaps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ GlfContextCaps::InitInstance()

GlfContextCaps& caps = TfSingleton<GlfContextCaps>::GetInstance();

GarchGLApiLoad();

caps._LoadCaps();
}

Expand Down

0 comments on commit 4034139

Please sign in to comment.