Skip to content

Commit

Permalink
CHW: Use the current video mode to create the depth render target.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 28, 2015
1 parent b218be3 commit 0dbd45b
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 @@ -348,7 +348,7 @@ void CHW::UpdateViews()
// Create Depth/stencil buffer
glGenTextures(1, &HW.pBaseZB);
CHK_GL(glBindTexture(GL_TEXTURE_2D, HW.pBaseZB));
CHK_GL(glTexStorage2D(GL_TEXTURE_2D, 1, GL_DEPTH24_STENCIL8, Device.dwWidth, Device.dwHeight));
CHK_GL(glTexStorage2D(GL_TEXTURE_2D, 1, GL_DEPTH24_STENCIL8, psCurrentVidMode[0], psCurrentVidMode[1]));
}


Expand Down

0 comments on commit 0dbd45b

Please sign in to comment.