#endif
#define STBI_ONLY_JPEG
+#define STBI_NO_THREAD_LOCALS
#define STB_IMAGE_IMPLEMENTATION
#include "vg/submodules/stb/stb_image.h"
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 );