Removing unneeded glViewport.

This commit is contained in:
Ben Vanik 2015-03-21 02:38:52 -07:00
parent b406f49ae4
commit 704077d543
1 changed files with 0 additions and 2 deletions

View File

@ -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);