From 79bf1e02c9af40922b184ccd42533b3608d20364 Mon Sep 17 00:00:00 2001 From: hgn Date: Mon, 4 Dec 2023 16:51:57 +0000 Subject: [PATCH] add none compiler --- vg.h | 2 ++ vg_build.h | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/vg.h b/vg.h index 4b8956a..753da33 100644 --- a/vg.h +++ b/vg.h @@ -173,6 +173,7 @@ struct vg{ quality_profile; float loader_ring; + GLuint tex_missing; } static vg = { .time_rate = 1.0 }; const char *vg_get_basepath(void){ @@ -292,6 +293,7 @@ static void _vg_load_full( void *data ) vg_preload(); /* internal */ + vg_tex2d_replace_with_error( &vg.tex_missing ); vg_loader_step( vg_input_init, vg_input_free ); vg_loader_step( vg_lines_init, NULL ); #ifndef VG_NO_AUDIO diff --git a/vg_build.h b/vg_build.h index d857645..f7a641e 100644 --- a/vg_build.h +++ b/vg_build.h @@ -32,7 +32,8 @@ struct compiler_info { k_compiler_clang, k_compiler_gcc, - k_compiler_mingw + k_compiler_mingw, + k_compiler_none } compiler; @@ -79,7 +80,7 @@ void vg_build_include( const char *inc ) const char *vg_compiler_str(void) { - return (const char *[]){ "clang", "gcc", "i686-w64-mingw32-gcc" } + return (const char *[]){ "clang", "gcc", "i686-w64-mingw32-gcc", "none" } [vg_compiler.compiler]; } -- 2.25.1