X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_tex.h;h=68d9d458654721dc17a06f6acd6eea2b54a7e20c;hb=38b1ac8ff5d4f9a8a24629a8bf6e929a9dbfff9b;hp=7b2142c371bc62d654c1db9e6b2b6020d822c738;hpb=8d180b64058791e67b481d28bc57c7f2ed9c1e3d;p=vg.git 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 );