@@ -73,25 +73,25 @@ static void update(void *data) {
7373 .origin_z = 0 ,
7474 };
7575
76- kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , width / 2 , height / 2 , 1 );
76+ kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , framebuffer -> width / 2 , framebuffer -> height / 2 , 1 );
7777
7878 destination .origin_x = width / 2 ;
7979 destination .origin_y = 0 ;
8080 source .texture = & render_targets [1 ];
8181
82- kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , width / 2 , height / 2 , 1 );
82+ kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , framebuffer -> width / 2 , framebuffer -> height / 2 , 1 );
8383
8484 destination .origin_x = 0 ;
8585 destination .origin_y = height / 2 ;
8686 source .texture = & render_targets [2 ];
8787
88- kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , width / 2 , height / 2 , 1 );
88+ kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , framebuffer -> width / 2 , framebuffer -> height / 2 , 1 );
8989
9090 destination .origin_x = width / 2 ;
9191 destination .origin_y = height / 2 ;
9292 source .texture = & render_targets [3 ];
9393
94- kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , width / 2 , height / 2 , 1 );
94+ kore_gpu_command_list_copy_texture_to_texture (& list , & source , & destination , framebuffer -> width / 2 , framebuffer -> height / 2 , 1 );
9595
9696#ifdef SCREENSHOT
9797 screenshot_take (& device , & list , framebuffer , width , height );
@@ -163,5 +163,13 @@ int kickstart(int argc, char **argv) {
163163
164164 kore_start ();
165165
166+ kore_gpu_buffer_destroy (& indices );
167+ kong_destroy_buffer_vertex_in (& vertices );
168+ for (uint32_t i = 0 ; i < 4 ; ++ i ) {
169+ kore_gpu_texture_destroy (& render_targets [i ]);
170+ }
171+ kore_gpu_command_list_destroy (& list );
172+ kore_gpu_device_destroy (& device );
173+
166174 return 0 ;
167175}
0 commit comments