Browse Source

Windows shell: Fix OpenGL error during startup

Michael Ragazzon 4 years ago
parent
commit
2fb8824a9a

+ 0 - 4
Samples/shell/src/win32/ShellRenderInterfaceExtensionsOpenGL_Win32.cpp

@@ -116,10 +116,6 @@ bool ShellRenderInterfaceOpenGL::AttachToNative(void *nativeWindow)
 
 	glMatrixMode(GL_PROJECTION);
 	glLoadIdentity();
-	RECT crect;
-	GetClientRect(this->window_handle, &crect);
-	glOrtho(0, (crect.right - crect.left), (crect.bottom - crect.top), 0, -1, 1);
-
 	glMatrixMode(GL_MODELVIEW);
 	glLoadIdentity();