fix some undefined behaviors

This commit is contained in:
nillerusr
2020-11-18 17:30:58 +03:00
parent e453bdd409
commit 7bb2dbdb1e
5 changed files with 4 additions and 8 deletions

View File

@@ -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;