Skip to content

Commit

Permalink
glHW: Add glClipControl.
Browse files Browse the repository at this point in the history
  • Loading branch information
CrossVR committed Nov 21, 2015
1 parent e4e7c13 commit 4b68400
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Layers/xrRenderGL/glHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ void CHW::CreateDevice( HWND hWnd, bool move_window )
CHK_GL(glDebugMessageCallback((GLDEBUGPROC)OnDebugCallback, nullptr));
#endif // DEBUG

// Clip control ensures compatibility with D3D device coordinates.
// TODO: Fix these differences in the blenders/shaders.
CHK_GL(glClipControl(GL_UPPER_LEFT, GL_ZERO_TO_ONE));

#ifndef _EDITOR
updateWindowProps (m_hWnd);
fill_vid_mode_list (this);
Expand Down

0 comments on commit 4b68400

Please sign in to comment.