add stubs for asan/ubsan

This commit is contained in:
nillerusr
2020-11-30 21:44:53 +03:00
parent 9e7ab7bd22
commit 0b5a04e732
8 changed files with 338 additions and 95 deletions

View File

@@ -27,6 +27,7 @@
// NOTE: This must be the last file included!
#include "tier0/memdbgon.h"
#include "mat_stub.h"
//#define DEBUG_DEPTH 1
@@ -38,7 +39,6 @@ static ConVar mat_showenvmapmask( "mat_showenvmapmask", "0" );
static ConVar mat_debugdepth( "mat_debugdepth", "0" );
extern ConVar mat_supportflashlight;
//-----------------------------------------------------------------------------
// Implementation of the shader system
//-----------------------------------------------------------------------------
@@ -2024,10 +2024,9 @@ void CShaderSystem::LoadCubeMap( IMaterialVar **ppParams, IMaterialVar *pTexture
if ( stricmp( pTextureVar->GetStringValue(), "env_cubemap" ) == 0 )
{
// garymcthack
// don't have to load anything here. . just set the texture value to something
// don't have to load anything here. . just set the texture value to DummyTexture
// special that says to use the cubemap entity.
pTextureVar->SetTextureValue( ( ITexture * )-1 );
pTextureVar->SetTextureValue( &g_DummyTexture );
SetFlags2( ppParams, MATERIAL_VAR2_USES_ENV_CUBEMAP );
}
else