examples: fix segmentation fault crash on exit in sokol 0X_ examples (#13299)
parent
eb765f975c
commit
faaa7035c4
|
@ -379,10 +379,6 @@ fn my_init(mut app App) {
|
|||
}
|
||||
}
|
||||
|
||||
fn cleanup(mut app App) {
|
||||
gfx.shutdown()
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* event
|
||||
|
@ -424,7 +420,6 @@ fn main() {
|
|||
bg_color: bg_color
|
||||
frame_fn: frame
|
||||
init_fn: my_init
|
||||
cleanup_fn: cleanup
|
||||
event_fn: my_event_manager
|
||||
)
|
||||
|
||||
|
|
|
@ -553,10 +553,6 @@ fn my_init(mut app App) {
|
|||
app.init_flag = true
|
||||
}
|
||||
|
||||
fn cleanup(mut app App) {
|
||||
gfx.shutdown()
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
*
|
||||
* event
|
||||
|
@ -601,7 +597,6 @@ fn main() {
|
|||
bg_color: bg_color
|
||||
frame_fn: frame
|
||||
init_fn: my_init
|
||||
cleanup_fn: cleanup
|
||||
event_fn: my_event_manager
|
||||
)
|
||||
|
||||
|
|
|
@ -372,10 +372,6 @@ fn my_init(mut app App) {
|
|||
app.init_flag = true
|
||||
}
|
||||
|
||||
fn cleanup(mut app App) {
|
||||
gfx.shutdown()
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* events handling
|
||||
******************************************************************************/
|
||||
|
@ -412,7 +408,6 @@ fn main() {
|
|||
bg_color: bg_color
|
||||
frame_fn: frame
|
||||
init_fn: my_init
|
||||
cleanup_fn: cleanup
|
||||
event_fn: my_event_manager
|
||||
)
|
||||
|
||||
|
|
|
@ -560,10 +560,6 @@ fn my_init(mut app App) {
|
|||
app.init_flag = true
|
||||
}
|
||||
|
||||
fn cleanup(mut app App) {
|
||||
gfx.shutdown()
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* events handling
|
||||
******************************************************************************/
|
||||
|
@ -606,7 +602,6 @@ fn main() {
|
|||
bg_color: bg_color
|
||||
frame_fn: frame
|
||||
init_fn: my_init
|
||||
cleanup_fn: cleanup
|
||||
event_fn: my_event_manager
|
||||
)
|
||||
|
||||
|
|
|
@ -437,10 +437,6 @@ fn my_init(mut app App) {
|
|||
app.init_flag = true
|
||||
}
|
||||
|
||||
fn cleanup(mut app App) {
|
||||
gfx.shutdown()
|
||||
}
|
||||
|
||||
/******************************************************************************
|
||||
* events handling
|
||||
******************************************************************************/
|
||||
|
@ -495,7 +491,6 @@ fn main(){
|
|||
bg_color: bg_color
|
||||
frame_fn: frame
|
||||
init_fn: my_init
|
||||
cleanup_fn: cleanup
|
||||
event_fn: my_event_manager
|
||||
)
|
||||
|
||||
|
|
|
@ -233,7 +233,6 @@ fn my_init(mut app App) {
|
|||
}
|
||||
|
||||
fn cleanup(mut app App) {
|
||||
gfx.shutdown()
|
||||
/*
|
||||
for _, mat in app.obj_part.texture {
|
||||
obj.destroy_texture(mat)
|
||||
|
|
Loading…
Reference in New Issue