From 38b1ac8ff5d4f9a8a24629a8bf6e929a9dbfff9b Mon Sep 17 00:00:00 2001 From: hgn Date: Wed, 22 Nov 2023 12:10:21 +0000 Subject: [PATCH] misc fixes --- vg_loader.h | 2 +- vg_msg.h | 2 +- vg_tex.h | 19 +++++++++++-------- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/vg_loader.h b/vg_loader.h index fcae755..206e1d8 100644 --- a/vg_loader.h +++ b/vg_loader.h @@ -195,7 +195,7 @@ static int _vg_loader_thread( void *pfn ){ return 0; /* Run client loader */ - vg_info( "Starting client loader thread @%p\n", pfn ); + //vg_info( "Starting client loader thread @%p\n", pfn ); void (*call_func)(void *data) = pfn; call_func( vg.thread_data ); diff --git a/vg_msg.h b/vg_msg.h index 13f15dd..5ae56c4 100644 --- a/vg_msg.h +++ b/vg_msg.h @@ -530,7 +530,7 @@ static int vg_msg_getkvcmd( vg_msg *msg, const char *key, vg_msg_cmd *cmd ){ } } } - + msg->error = k_vg_msg_error_OK; msg->cur = orig; return 0; } diff --git a/vg_tex.h b/vg_tex.h index 7b2142c..68d9d45 100644 --- a/vg_tex.h +++ b/vg_tex.h @@ -63,12 +63,15 @@ struct vg_sprite #define VG_TEX2D_CLAMP 0x8 #define VG_TEX2D_NOMIP 0x10 -static u8 const_vg_tex2d_err[] = -{ - 0x00, 0xff, 0xff, 0xff, - 0xff, 0xff, 0x00, 0xff, - 0x00, 0x00, 0xff, 0xff, - 0xff, 0xff, 0x00, 0xff +static u8 const_vg_tex2d_err[] ={ + 0xff,0x00,0xff,0xff, 0x00,0x00,0x00,0xff, + 0xff,0x00,0xff,0xff, 0x00,0x00,0x00,0xff, + 0x00,0x00,0x00,0xff, 0xff,0x00,0xff,0xff, + 0x00,0x00,0x00,0xff, 0xff,0x00,0xff,0xff, + 0xff,0x00,0xff,0xff, 0x00,0x00,0x00,0xff, + 0xff,0x00,0xff,0xff, 0x00,0x00,0x00,0xff, + 0x00,0x00,0x00,0xff, 0xff,0x00,0xff,0xff, + 0x00,0x00,0x00,0xff, 0xff,0x00,0xff,0xff, }; #define QOI_SRGB 0 @@ -179,8 +182,8 @@ static void vg_tex2d_replace_with_error( GLuint *dest ) info->dest = dest; info->flags = VG_TEX2D_NEAREST|VG_TEX2D_REPEAT|VG_TEX2D_NOMIP; - info->width = 2; - info->height = 2; + info->width = 4; + info->height = 4; info->rgba = const_vg_tex2d_err; vg_async_dispatch( call, async_vg_tex2d_upload ); -- 2.25.1