X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_tex.h;h=3f9cd9850eb8ae45191d0dd5ddb24250e58d2bb9;hb=fac9f6fff674421f27fa4f4c1d2844998f0003d6;hp=68d9d458654721dc17a06f6acd6eea2b54a7e20c;hpb=38b1ac8ff5d4f9a8a24629a8bf6e929a9dbfff9b;p=vg.git diff --git a/vg_tex.h b/vg_tex.h index 68d9d45..3f9cd98 100644 --- a/vg_tex.h +++ b/vg_tex.h @@ -326,6 +326,9 @@ void vg_tex2d_load_qoi_async( const u8 *bytes, u32 size, static void vg_tex2d_load_qoi_async_file( const char *path, u32 flags, GLuint *dest ) { + if( vg_thread_purpose() != k_thread_purpose_loader ) + vg_fatal_error( "wrong thread\n" ); + vg_linear_clear( vg_mem.scratch ); u32 size;