examples: fix segmentation fault crash on exit in sokol 0X_ examples (#13299)

pull/13304/head
Larpon 2022-01-27 18:46:55 +01:00 committed by GitHub
parent eb765f975c
commit faaa7035c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 0 additions and 26 deletions

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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
)

View File

@ -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)