Skip to content

Commit

Permalink
glHW: Fix incorrect enum being used in ClearDepthStencilView().
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Mar 25, 2016
1 parent 63fb1a8 commit 1c7e3a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/xrRenderGL/glHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ void CHW::ClearDepthStencilView(GLuint pDepthStencilView, UINT ClearFlags, FLOAT


glPushAttrib(mask);
if (ClearFlags & D3DCLEAR_ZBUFFER)
if (ClearFlags & D3D_CLEAR_DEPTH)
{
glDepthMask(GL_TRUE);
glClearDepthf(Depth);
Expand Down

0 comments on commit 1c7e3a9

Please sign in to comment.