From 704077d5432960539e5225090088c1b562744df9 Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Sat, 21 Mar 2015 02:38:52 -0700 Subject: [PATCH] Removing unneeded glViewport. --- src/xenia/gpu/gl4/wgl_control.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/xenia/gpu/gl4/wgl_control.cc b/src/xenia/gpu/gl4/wgl_control.cc index 164020331..2c584a7bb 100644 --- a/src/xenia/gpu/gl4/wgl_control.cc +++ b/src/xenia/gpu/gl4/wgl_control.cc @@ -81,8 +81,6 @@ LRESULT WGLControl::WndProc(HWND hWnd, UINT message, WPARAM wParam, GLContextLock context_lock(&context_); wglSwapIntervalEXT(0); - // TODO(benvanik): is viewport needed? - glViewport(0, 0, width_, height_); float clear_color[] = {rand() / (float)RAND_MAX, 1.0f, 0, 1.0f}; glClearNamedFramebufferfv(0, GL_COLOR, 0, clear_color);