X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=render.h;h=a80f78acff6048e8655d6bff56b9f9237972f2c2;hb=c34dde859968ced3dc7e8dd7be29f676689813d3;hp=a4005ddbcec76028b77fd873c6b9b8dca479a7b1;hpb=8c376ed2e4021a18b0a6c6e800109d67ad09d198;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/render.h b/render.h index a4005dd..a80f78a 100644 --- a/render.h +++ b/render.h @@ -244,7 +244,7 @@ VG_STATIC void render_fb_bind_texture( framebuffer *fb, if( (at->purpose != k_framebuffer_attachment_type_texture) && (at->purpose != k_framebuffer_attachment_type_texture_depth) ) { - vg_fatal_exit_loop( "illegal operation: bind non-texture framebuffer" + vg_fatal_error( "illegal operation: bind non-texture framebuffer" " attachment to texture slot" ); } @@ -480,7 +480,7 @@ VG_STATIC void render_fb_allocate( struct framebuffer *fb ) vg_error( " status: Generic Error" ); vg_info( "}\n" ); - vg_fatal_exit_loop( "Incomplete framebuffer (see logs)" ); + vg_fatal_error( "Incomplete framebuffer (see logs)" ); } } @@ -503,16 +503,23 @@ VG_STATIC void render_fb_resize(void) VG_STATIC int render_framebuffer_control( int argc, char const *argv[] ); VG_STATIC void render_framebuffer_poll( int argc, char const *argv[] ); -VG_STATIC void render_init_fs_quad(void) + +VG_STATIC void async_render_init( void *payload, u32 size ) { - vg_info( "[render] Allocate quad\n" ); + /* + * Complete Framebuffers + */ + for( int i=0; i