Skip to content

Commit 4b68400

Browse files
committed
glHW: Add glClipControl.
1 parent e4e7c13 commit 4b68400

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Layers/xrRenderGL/glHW.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,10 @@ void CHW::CreateDevice( HWND hWnd, bool move_window )
125125
CHK_GL(glDebugMessageCallback((GLDEBUGPROC)OnDebugCallback, nullptr));
126126
#endif // DEBUG
127127

128+
// Clip control ensures compatibility with D3D device coordinates.
129+
// TODO: Fix these differences in the blenders/shaders.
130+
CHK_GL(glClipControl(GL_UPPER_LEFT, GL_ZERO_TO_ONE));
131+
128132
#ifndef _EDITOR
129133
updateWindowProps (m_hWnd);
130134
fill_vid_mode_list (this);

0 commit comments

Comments
 (0)