simplify
[carveJwlIkooP6JGAAIwe30JlM.git] / world_render.h
index 7fb47b0dc2cb580c9ee3fd1a8521d04643018412..a01c056c32aebe5e332979461cfdbb1d74bc4e2c 100644 (file)
@@ -60,8 +60,8 @@ VG_STATIC void world_render_init(void)
    vg_tex2d_load_qoi_async_file( "textures/garbage.qoi", 
                                  VG_TEX2D_NEAREST|VG_TEX2D_REPEAT, 
                                  &tex_terrain_noise );
-   vg_async_item *call = vg_async_alloc(0);
-   vg_async_dispatch( call, async_world_render_init );
+
+   vg_async_call( async_world_render_init, NULL, 0 );
 }
 
 VG_STATIC void world_link_lighting_ub( world_instance *world, GLuint shader )