forked from PixarAnimationStudios/OpenUSD
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[usdviewq] Fix GL error spew on shutdown
Closing the usdview window (via the [X] button, or Alt+F4) resulted in a bunch of GL errors when using PySide2. The errors stem from the GL context being destroyed before the renderer in the stage view widget is shutdown. This change of behavior from PySide to PySide2 resulted in the stageView widget being destroyed before the aboutToQuit handler was invoked. The fix reworks the way usdview shuts down. - Hoist the main window widget into a class that implements closeEvent, which triggers shutdown of the stage (and stageView). - Connect closeAllWindows to the File>Quit action, which in turn triggers the main window's closeEvent. Closing the application via the window leads to the same shutdown process. - Remove existing handler registration to the aboutToQuit signal. (Internal change: 2055246)
- Loading branch information
Showing
1 changed file
with
24 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters