@@ -930,7 +930,7 @@ void D3DXRenderBase::overdrawBegin()
930930{
931931#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
932932 // TODO: DX10: Implement overdrawBegin
933- VERIFY (! " D3DXRenderBase::overdrawBegin not implemented." );
933+ VERIFY (" ! D3DXRenderBase::overdrawBegin not implemented." );
934934#else
935935 // Turn stenciling
936936 CHK_DX (HW.pDevice ->SetRenderState (D3DRS_STENCILENABLE, TRUE ));
@@ -952,7 +952,7 @@ void D3DXRenderBase::overdrawEnd()
952952{
953953#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
954954 // TODO: DX10: Implement overdrawEnd
955- VERIFY (! " D3DXRenderBase::overdrawBegin not implemented." );
955+ VERIFY (" ! D3DXRenderBase::overdrawEnd not implemented." );
956956#else
957957 // Set up the stencil states
958958 CHK_DX (HW.pDevice ->SetRenderState (D3DRS_STENCILZFAIL, D3DSTENCILOP_KEEP));
@@ -1027,7 +1027,7 @@ bool D3DXRenderBase::GetForceGPU_REF() { return HW.Caps.bForceGPU_REF; }
10271027u32 D3DXRenderBase::GetCacheStatPolys () { return RCache.stat .polys ; }
10281028void D3DXRenderBase::Begin ()
10291029{
1030- #if !defined(USE_DX10) && !defined(USE_DX11) && !defined(USE_OGL)
1030+ #ifdef USE_DX9
10311031 CHK_DX (HW.pDevice ->BeginScene ());
10321032#endif
10331033 RCache.OnFrameBegin ();
@@ -1061,7 +1061,7 @@ void D3DXRenderBase::End()
10611061 overdrawEnd ();
10621062 RCache.OnFrameEnd ();
10631063 DoAsyncScreenshot ();
1064- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
1064+ #ifndef USE_DX9
10651065 bool bUseVSync = psDeviceFlags.is (rsFullscreen) && psDeviceFlags.test (rsVSync); // xxx: weird tearing glitches when VSync turned on for windowed mode in DX10\11
10661066 HW.m_pSwapChain ->Present (bUseVSync ? 1 : 0 , 0 );
10671067#else
@@ -1073,7 +1073,7 @@ void D3DXRenderBase::End()
10731073void D3DXRenderBase::ResourcesDestroyNecessaryTextures () { Resources->DestroyNecessaryTextures (); }
10741074void D3DXRenderBase::ClearTarget ()
10751075{
1076- #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
1076+ #ifndef USE_DX9
10771077 FLOAT ColorRGBA[4 ] = {0 .0f , 0 .0f , 0 .0f , 0 .0f };
10781078 HW.pContext ->ClearRenderTargetView (RCache.get_RT (), ColorRGBA);
10791079#else
0 commit comments