togl/togles: fix flashlight problems

This commit is contained in:
nillerusr 2022-07-25 17:10:10 +03:00
parent ae94aa060d
commit 5e1ed3bd26
4 changed files with 23 additions and 24 deletions

View File

@ -1,5 +0,0 @@
#!/bin/sh
# example: ./build.sh everything togl
make MAKE_VERBOSE=1 NO_CHROOT=1 -f $1.mak $2 -j$(nproc --all)

View File

@ -3768,6 +3768,10 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
{
return (1<<7);
}
else if ( V_stristr( pName, "skin_ps" ) )
{
return (1<<4);
}
else if ( V_stristr( pName, "infected_ps" ) )
{
return (1<<1);
@ -3794,7 +3798,7 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
}
else if ( V_stristr( pName, "worldtwotextureblend_ps" ) )
{
return (1<<7);
return (1<<2);
}
else if ( V_stristr( pName, "teeth_flashlight_ps" ) )
{

View File

@ -3771,7 +3771,7 @@ static int ShadowDepthSamplerMaskFromName( const char *pName )
}
else if ( V_stristr( pName, "skin_ps" ) )
{
return (1<<4) | (1<<6);
return (1<<4);
}
else if ( V_stristr( pName, "infected_ps" ) )
{

View File

@ -4506,7 +4506,7 @@ void GLMContext::GenDebugFontTex( void )
//-----------------------------------------------------
// fetch elements of font data and make texels... we're doing the whole slab so we don't really need the stride info
unsigned long *destTexelPtr = (unsigned long *)lockAddress;
uint32 *destTexelPtr = (uint32 *)lockAddress;
for( int index = 0; index < 16384; index++ )
{