Skip to content

Commit

Permalink
D3DXRenderBase: Use modern clear functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 24, 2015
1 parent 62600b4 commit 3f72d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layers/xrRender/r__dsgraph_build.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ void D3DXRenderBase::Begin()

void D3DXRenderBase::Clear()
{
#if defined(USE_DX10) || defined(USE_DX11)
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
HW.pContext->ClearDepthStencilView(RCache.get_ZB(), D3D_CLEAR_DEPTH|D3D_CLEAR_STENCIL, 1.0f, 0);
if (psDeviceFlags.test(rsClearBB))
{
Expand Down Expand Up @@ -1068,7 +1068,7 @@ void D3DXRenderBase::ResourcesDestroyNecessaryTextures()

void D3DXRenderBase::ClearTarget()
{
#if defined(USE_DX10) || defined(USE_DX11)
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
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 3f72d7f

Please sign in to comment.