From: hgn Date: Fri, 31 Oct 2025 01:12:48 +0000 (+0000) Subject: remove SHIT X-Git-Url: https://skaterift.com/git/?a=commitdiff_plain;h=e953c222728c49f9939bb917ac6c7d2f49390e4e;p=vg.git remove SHIT --- diff --git a/source/engine/model.h b/source/engine/model.h index bea0d12..f6b260c 100644 --- a/source/engine/model.h +++ b/source/engine/model.h @@ -49,7 +49,9 @@ enum material_flag k_material_flag_ghosts = k_material_flag_boundary| k_material_flag_invisible| - k_material_flag_walking + k_material_flag_walking, + + k_material_flag_spritesheet = 0x1000 }; #pragma pack(push,1) diff --git a/source/engine/vg_tex.c b/source/engine/vg_tex.c index fb0b349..01559f7 100644 --- a/source/engine/vg_tex.c +++ b/source/engine/vg_tex.c @@ -108,40 +108,6 @@ void vg_qoi_stream_decode( struct qoi_desc *desc, struct stream *stream, u8 *pix pixels[ ((row*desc->width) + x)*desc->channels + i ] = px.rgba[i]; } } - - if( desc->channels == 4 ) - { - for( i32 y=0; yheight; y ++ ) - { - for( i32 x=0; xwidth; x ++ ) - { - u32 ia = ((y*desc->width)+x)*4; - if( pixels[ ia+3 ] == 0 ) - { - for( i32 yy=-1; yy<=1; yy++ ) - { - for( i32 xx=-1; xx<=1; xx++ ) - { - i32 sx = x+xx, - sy = y+yy; - if( sx < 0 ) sx = desc->width-1; - if( sy < 0 ) sy = desc->height-1; - if( sx >= desc->width ) sx = 0; - if( sy >= desc->height ) sy = 0; - u32 ib = ((sy*desc->width)+sx)*4; - if( pixels[ ib + 3 ] > 1 && pixels[ib+3]!=254 ) - { - pixels[ ia+0 ] = pixels[ ib+0 ]; - pixels[ ia+1 ] = pixels[ ib+1 ]; - pixels[ ia+2 ] = pixels[ ib+2 ]; - pixels[ ia+3 ] = 1; - } - } - } - } - } - } - } } u32 vg_query_qoi_max_compressed_size( const struct qoi_desc *desc )