Commit 05e0a01
committed
frontend: release widget OpenGL resources before the context is destroyed
igexplorer segfaulted on close: the static Context outlived the stack-local
Application, so RenderWidget was destroyed during exit handlers and its
GLTexture members called glDeleteTextures through invalidated glad pointers.
Drop the Context references while the Application is alive, and clear the
Application children before ui::shutdown. Both owners must release early;
either one alone keeps the widgets alive past glfwTerminate.
Regression from the SDL2 to GLFW migration.1 parent c98374e commit 05e0a01
2 files changed
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
61 | 76 | | |
62 | 77 | | |
63 | 78 | | |
| |||
190 | 205 | | |
191 | 206 | | |
192 | 207 | | |
| 208 | + | |
193 | 209 | | |
194 | 210 | | |
195 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
| |||
0 commit comments