Skip to content

Commit

Permalink
xrRender/r__dsgraph_build.cpp: formatting
Browse files Browse the repository at this point in the history
Replaced three defines check with one
Fixed misplaced ! in VERIFY
  • Loading branch information
Xottab-DUTY committed Sep 4, 2018
1 parent a05bb57 commit 4d6e7be
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Layers/xrRender/r__dsgraph_build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,7 +930,7 @@ void D3DXRenderBase::overdrawBegin()
{
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
// TODO: DX10: Implement overdrawBegin
VERIFY(!"D3DXRenderBase::overdrawBegin not implemented.");
VERIFY("! D3DXRenderBase::overdrawBegin not implemented.");
#else
// Turn stenciling
CHK_DX(HW.pDevice->SetRenderState(D3DRS_STENCILENABLE, TRUE));
Expand All @@ -952,7 +952,7 @@ void D3DXRenderBase::overdrawEnd()
{
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
// TODO: DX10: Implement overdrawEnd
VERIFY(!"D3DXRenderBase::overdrawBegin not implemented.");
VERIFY("!D3DXRenderBase::overdrawEnd not implemented.");
#else
// Set up the stencil states
CHK_DX(HW.pDevice->SetRenderState(D3DRS_STENCILZFAIL, D3DSTENCILOP_KEEP));
Expand Down Expand Up @@ -1027,7 +1027,7 @@ bool D3DXRenderBase::GetForceGPU_REF() { return HW.Caps.bForceGPU_REF; }
u32 D3DXRenderBase::GetCacheStatPolys() { return RCache.stat.polys; }
void D3DXRenderBase::Begin()
{
#if !defined(USE_DX10) && !defined(USE_DX11) && !defined(USE_OGL)
#ifdef USE_DX9
CHK_DX(HW.pDevice->BeginScene());
#endif
RCache.OnFrameBegin();
Expand Down Expand Up @@ -1061,7 +1061,7 @@ void D3DXRenderBase::End()
overdrawEnd();
RCache.OnFrameEnd();
DoAsyncScreenshot();
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
#ifndef USE_DX9
bool bUseVSync = psDeviceFlags.is(rsFullscreen) && psDeviceFlags.test(rsVSync); //xxx: weird tearing glitches when VSync turned on for windowed mode in DX10\11
HW.m_pSwapChain->Present(bUseVSync ? 1 : 0, 0);
#else
Expand All @@ -1073,7 +1073,7 @@ void D3DXRenderBase::End()
void D3DXRenderBase::ResourcesDestroyNecessaryTextures() { Resources->DestroyNecessaryTextures(); }
void D3DXRenderBase::ClearTarget()
{
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
#ifndef USE_DX9
FLOAT ColorRGBA[4] = {0.0f, 0.0f, 0.0f, 0.0f};
HW.pContext->ClearRenderTargetView(RCache.get_RT(), ColorRGBA);
#else
Expand Down

0 comments on commit 4d6e7be

Please sign in to comment.