X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_tex.h;fp=vg_tex.h;h=7b2142c371bc62d654c1db9e6b2b6020d822c738;hb=76d234b7dc5e6500e8a54009b367e7620f11ef97;hp=ac5920a480c126f806eabe453dc9f4dfe86eee84;hpb=ad701a4bd7ea7022de1a1d975564f5a34bd1e22b;p=vg.git diff --git a/vg_tex.h b/vg_tex.h index ac5920a..7b2142c 100644 --- a/vg_tex.h +++ b/vg_tex.h @@ -126,7 +126,7 @@ struct texture_load_info{ u8 *rgba; }; -VG_STATIC void async_vg_tex2d_upload( void *payload, u32 size ) +static void async_vg_tex2d_upload( void *payload, u32 size ) { if( vg_thread_purpose() != k_thread_purpose_main ){ vg_fatal_error( "Catastrophic programming error.\n" ); @@ -170,7 +170,7 @@ VG_STATIC void async_vg_tex2d_upload( void *payload, u32 size ) } } -VG_STATIC void vg_tex2d_replace_with_error( GLuint *dest ) +static void vg_tex2d_replace_with_error( GLuint *dest ) { u32 hdr_size = vg_align8(sizeof(struct texture_load_info)); @@ -186,7 +186,7 @@ VG_STATIC void vg_tex2d_replace_with_error( GLuint *dest ) vg_async_dispatch( call, async_vg_tex2d_upload ); } -VG_STATIC +static void vg_tex2d_load_qoi_async( const u8 *bytes, u32 size, u32 flags, GLuint *dest ) { @@ -320,7 +320,7 @@ void vg_tex2d_load_qoi_async( const u8 *bytes, u32 size, vg_async_dispatch( call, async_vg_tex2d_upload ); } -VG_STATIC +static void vg_tex2d_load_qoi_async_file( const char *path, u32 flags, GLuint *dest ) { vg_linear_clear( vg_mem.scratch );