Skip to content

Commit 3f72d7f

Browse files
committed
D3DXRenderBase: Use modern clear functions.
1 parent 62600b4 commit 3f72d7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Layers/xrRender/r__dsgraph_build.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ void D3DXRenderBase::Begin()
10281028

10291029
void D3DXRenderBase::Clear()
10301030
{
1031-
#if defined(USE_DX10) || defined(USE_DX11)
1031+
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
10321032
HW.pContext->ClearDepthStencilView(RCache.get_ZB(), D3D_CLEAR_DEPTH|D3D_CLEAR_STENCIL, 1.0f, 0);
10331033
if (psDeviceFlags.test(rsClearBB))
10341034
{
@@ -1068,7 +1068,7 @@ void D3DXRenderBase::ResourcesDestroyNecessaryTextures()
10681068

10691069
void D3DXRenderBase::ClearTarget()
10701070
{
1071-
#if defined(USE_DX10) || defined(USE_DX11)
1071+
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
10721072
FLOAT ColorRGBA[4] = {0.0f, 0.0f, 0.0f, 0.0f};
10731073
HW.pContext->ClearRenderTargetView(RCache.get_RT(), ColorRGBA);
10741074
#else

0 commit comments

Comments
 (0)