mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
ref_soft: Fix crash on glowshell, tune decals blending
This commit is contained in:
parent
1871f39b2b
commit
7f8caf1634
@ -1192,7 +1192,7 @@ void R_PolysetFillSpans8 (spanpackage_t *pspanpackage)
|
||||
*lpdest = ((byte *)vid.colormap)[irtable[*lptex]];
|
||||
else*/
|
||||
//*lpdest = *lptex; //((byte *)vid.colormap)[*lptex + (llight & 0xFF00)];
|
||||
uint src = *lptex;
|
||||
pixel_t src = *lptex;
|
||||
//*lpdest = //vid.colormap[src & 0xff00|(llight>>8)] << 8 | (src & llight & 0xff) | ((src & 0xff) >> 3);
|
||||
// very dirty, maybe need dual colormap?
|
||||
//*lpdest = (vid.colormap[src >> 8 | (llight & 0xFF00)] << 8) | src & 0xff;
|
||||
|
@ -1817,7 +1817,13 @@ static void R_StudioSetupSkin( studiohdr_t *ptexturehdr, int index )
|
||||
image_t *image;
|
||||
|
||||
if( FBitSet( g_nForceFaceFlags, STUDIO_NF_CHROME ))
|
||||
{
|
||||
image = R_GetTexture(tr.whiteTexture);
|
||||
r_affinetridesc.pskin = image->pixels[0];
|
||||
r_affinetridesc.skinwidth = image->width;
|
||||
r_affinetridesc.skinheight = image->height;
|
||||
return;
|
||||
}
|
||||
|
||||
if( ptexturehdr == NULL )
|
||||
return;
|
||||
|
2
r_surf.c
2
r_surf.c
@ -1069,7 +1069,7 @@ void R_DrawSurfaceDecals()
|
||||
if( alpha < 7) // && (vid.rendermode == kRenderTransAlpha || vid.rendermode == kRenderTransTexture ) )
|
||||
{
|
||||
pixel_t screen = dest[u]; // | 0xff & screen & src ;
|
||||
dest[u] = vid.alphamap[( alpha << 16)|(src & 0xff00)|(screen>>8)] << 8 | (screen & 0xff) | ((src & 0xff) >> 3);
|
||||
dest[u] = vid.alphamap[( alpha << 16)|(src & 0xff00)|(screen>>8)] << 8 | (screen & 0x7f) >> 3 | ((src & 0xff));
|
||||
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user