|
|
@@ -461,12 +461,7 @@ func (app *Application) Run() error {
|
|
|
app.frameCount++
|
|
|
}
|
|
|
|
|
|
- // Close default audio device
|
|
|
- if app.audioDev != nil {
|
|
|
- al.CloseDevice(app.audioDev)
|
|
|
- }
|
|
|
-
|
|
|
- // Dispose GL resources
|
|
|
+ // Dispose resources
|
|
|
if app.scene != nil {
|
|
|
app.scene.DisposeChildren(true)
|
|
|
}
|
|
|
@@ -474,6 +469,11 @@ func (app *Application) Run() error {
|
|
|
app.guiroot.DisposeChildren(true)
|
|
|
}
|
|
|
|
|
|
+ // Close default audio device
|
|
|
+ if app.audioDev != nil {
|
|
|
+ al.CloseDevice(app.audioDev)
|
|
|
+ }
|
|
|
+
|
|
|
// Terminates window manager
|
|
|
app.wmgr.Terminate()
|
|
|
|