diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-01-21 21:03:59 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-01-21 21:03:59 +0000 |
commit | 5782d712ffc31557d0cb12d5a220cebb783f6895 (patch) | |
tree | cdc0b2fb6d9b60ddca81eb7fb6a3906035d29875 /src/utils/win | |
parent | 70915f0210a8749553cbb93b12b2963cf350fff6 (diff) |
Rev the GrContext interface. Context has draw* functions that take a new GrPaint object. Removed many of the lower-level GrGpu function call-throughs on context.
Remove unused/unsupported point size (we don't draw non-hairline points using GL points).
Change current* getter functions to get* for consistency.
Fix bounds when drawing inverse-filled paths.
git-svn-id: http://skia.googlecode.com/svn/trunk@718 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/win')
-rw-r--r-- | src/utils/win/SkOSWindow_Win.cpp | 1 |
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); |