X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_tex.h;fp=vg_tex.h;h=14042a583c4a90fe2d6de384054faeee14106074;hb=fb4da0217c89131c17e33d03804ebd46b9232897;hp=125b43eb9eaa3369039897010647a32b502da141;hpb=a548f6ad8db187ef0fbada42db0ae1ab3af01529;p=vg.git diff --git a/vg_tex.h b/vg_tex.h index 125b43e..14042a5 100644 --- a/vg_tex.h +++ b/vg_tex.h @@ -127,6 +127,10 @@ struct texture_load_info{ VG_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" ); + } + struct texture_load_info *info = payload; glGenTextures( 1, info->dest );