Skip to content

Commit b5d6051

Browse files
committed
cstrike: optimize flashbang
1 parent b73f3b7 commit b5d6051

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

game/client/cstrike/cs_view_scene.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,13 @@ void CCSViewRender::PerformNightVisionEffect( const CViewSetup &view )
152152
render->ViewDrawFade( overlaycolor, pMaterial );
153153

154154
// Only one pass in DX7.
155-
if ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() >= 80 )
155+
/* if ( g_pMaterialSystemHardwareConfig->GetDXSupportLevel() >= 80 )
156156
{
157157
CMatRenderContextPtr pRenderContext( materials );
158158
pRenderContext->DrawScreenSpaceQuad( pMaterial );
159159
render->ViewDrawFade( overlaycolor, pMaterial );
160160
pRenderContext->DrawScreenSpaceQuad( pMaterial );
161-
}
161+
}*/
162162
}
163163
}
164164
}
@@ -211,6 +211,7 @@ void CCSViewRender::PerformFlashbangEffect( const CViewSetup &view )
211211
render->ViewDrawFade( overlaycolor, pMaterial );
212212

213213
// just do one pass for dxlevel < 80.
214+
/*
214215
if (g_pMaterialSystemHardwareConfig->GetDXSupportLevel() >= 80)
215216
{
216217
pRenderContext->DrawScreenSpaceRectangle( pMaterial, view.x, view.y, view.width, view.height,
@@ -221,6 +222,7 @@ void CCSViewRender::PerformFlashbangEffect( const CViewSetup &view )
221222
0, 0, m_pFlashTexture->GetActualWidth()-1, m_pFlashTexture->GetActualHeight()-1,
222223
m_pFlashTexture->GetActualWidth(), m_pFlashTexture->GetActualHeight() );
223224
}
225+
*/
224226
}
225227
else if ( m_pFlashTexture )
226228
{
@@ -233,7 +235,7 @@ void CCSViewRender::PerformFlashbangEffect( const CViewSetup &view )
233235
render->ViewDrawFade( overlaycolor, pMaterial );
234236

235237
// just do one pass for dxlevel < 80.
236-
if (g_pMaterialSystemHardwareConfig->GetDXSupportLevel() >= 80)
238+
/* if (g_pMaterialSystemHardwareConfig->GetDXSupportLevel() >= 80)
237239
{
238240
pRenderContext->DrawScreenSpaceRectangle( pMaterial, view.x, view.y, view.width, view.height,
239241
0, 0, m_pFlashTexture->GetActualWidth()-1, m_pFlashTexture->GetActualHeight()-1,
@@ -242,7 +244,7 @@ void CCSViewRender::PerformFlashbangEffect( const CViewSetup &view )
242244
pRenderContext->DrawScreenSpaceRectangle( pMaterial, view.x, view.y, view.width, view.height,
243245
0, 0, m_pFlashTexture->GetActualWidth()-1, m_pFlashTexture->GetActualHeight()-1,
244246
m_pFlashTexture->GetActualWidth(), m_pFlashTexture->GetActualHeight() );
245-
}
247+
}*/
246248
}
247249

248250
// this does the pure white overlay part of the flashbang effect.

0 commit comments

Comments
 (0)