mirror of
https://github.com/celisej567/source-engine.git
synced 2026-09-06 20:13:51 +03:00
add stubs for asan/ubsan
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user