Skip to content

Commit 1c7e3a9

Browse files
committed
glHW: Fix incorrect enum being used in ClearDepthStencilView().
1 parent 63fb1a8 commit 1c7e3a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Layers/xrRenderGL/glHW.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ void CHW::ClearDepthStencilView(GLuint pDepthStencilView, UINT ClearFlags, FLOAT
396396

397397

398398
glPushAttrib(mask);
399-
if (ClearFlags & D3DCLEAR_ZBUFFER)
399+
if (ClearFlags & D3D_CLEAR_DEPTH)
400400
{
401401
glDepthMask(GL_TRUE);
402402
glClearDepthf(Depth);

0 commit comments

Comments
 (0)