aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/win/SkOSWindow_Win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/win/SkOSWindow_Win.cpp')
-rw-r--r--src/utils/win/SkOSWindow_Win.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/win/SkOSWindow_Win.cpp b/src/utils/win/SkOSWindow_Win.cpp
index 53449b1c51..d0e6cc353b 100644
--- a/src/utils/win/SkOSWindow_Win.cpp
+++ b/src/utils/win/SkOSWindow_Win.cpp
@@ -438,6 +438,7 @@ bool SkOSWindow::attachGL(const SkBitmap* offscreen) {
}
}
if (wglMakeCurrent(GetDC((HWND)fHWND), (HGLRC)fHGLRC)) {
+ glViewport(0, 0, this->width(), this->height());
glClearColor(0, 0, 0, 0);
glClearStencil(0);
glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);