mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-07 17:29:36 +00:00
fix some undefined behaviors
This commit is contained in:
@@ -23,10 +23,6 @@
|
||||
|
||||
#define MATERIALVAR_CHAR_BUF_SIZE 512
|
||||
|
||||
/*#if !defined( _X360 )
|
||||
#pragma pack (1)
|
||||
#endif*/
|
||||
|
||||
ConVar mat_texture_tracking( "mat_texture_tracking", IsDebug() ? "1" : "0" );
|
||||
CUtlMap<ITexture*, CInterlockedInt> s_TextureRefList( DefLessFunc( ITexture* ) );
|
||||
CUtlMap<ITexture*, CInterlockedInt> *g_pTextureRefList = &s_TextureRefList;
|
||||
|
||||
@@ -3499,7 +3499,7 @@ void CShaderAPIDx8::ResetRenderState( bool bFullReset )
|
||||
SetRenderState( D3DRS_CULLMODE, D3DCULL_CCW );
|
||||
|
||||
// No shade mode yet
|
||||
m_DynamicState.m_ShadeMode = (D3DSHADEMODE)-1;
|
||||
m_DynamicState.m_ShadeMode = NULL;
|
||||
ShadeMode( SHADER_SMOOTH );
|
||||
|
||||
m_DynamicState.m_bHWMorphingEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user