Commit ee1dfa0
Free the GL context when OffScreenRenderer.release() is called.
After the previous change, the surface would only be released if there was an active MjrContext. This seems to be the case in practice, but it since it's possible for OffScreenRenderer to exist without an active MjrContext (before rendering), it makes sense to manage the GL context separately.
PiperOrigin-RevId: 435647965
Change-Id: I58da564dc4a7e04d77a2652c7511f03351fb84c61 parent 469a8bd commit ee1dfa0
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| 176 | + | |
176 | 177 | | |
177 | 178 | | |
| 179 | + | |
178 | 180 | | |
179 | 181 | | |
180 | 182 | | |
| |||
0 commit comments