togl/togles: fix flashlight problems
This commit is contained in:
parent
8336547b24
commit
d80636108c
4 changed files with 23 additions and 24 deletions
5
build.sh
5
build.sh
|
@ -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)
|
|
@ -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" ) )
|
||||
{
|
||||
|
|
|
@ -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" ) )
|
||||
{
|
||||
|
|
|
@ -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++ )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue