aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils/win/SkOSWindow_Win.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-20 14:13:56 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-05-20 14:13:56 +0000
commit271cffc77bd2fcb3458559e509634442517ca1e9 (patch)
tree694551c3f27e547710ad5779dd010f486ee96e25 /src/utils/win/SkOSWindow_Win.cpp
parent3c14d0f3d1b467dc3776669b0fc48cb463a20d41 (diff)
Add dual source blending support for proper blending with coverage.
Review URL: http://codereview.appspot.com/4535088/ git-svn-id: http://skia.googlecode.com/svn/trunk@1390 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/win/SkOSWindow_Win.cpp')
-rw-r--r--src/utils/win/SkOSWindow_Win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/utils/win/SkOSWindow_Win.cpp b/src/utils/win/SkOSWindow_Win.cpp
index 48a6183d12..b63386c710 100644
--- a/src/utils/win/SkOSWindow_Win.cpp
+++ b/src/utils/win/SkOSWindow_Win.cpp
@@ -345,6 +345,7 @@ void kill_dummy(HWND dummy) {
#define WGL_SUPPORT_OPENGL_ARB 0x2010
#define WGL_DOUBLE_BUFFER_ARB 0x2011
#define WGL_COLOR_BITS_ARB 0x2014
+#define WGL_ALPHA_BITS_ARB 0x201B
#define WGL_STENCIL_BITS_ARB 0x2023
#define WGL_FULL_ACCELERATION_ARB 0x2027
@@ -419,6 +420,7 @@ HGLRC create_gl(HWND hwnd) {
WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB,
WGL_SUPPORT_OPENGL_ARB, TRUE,
WGL_COLOR_BITS_ARB, 24,
+ WGL_ALPHA_BITS_ARB, 8,
WGL_STENCIL_BITS_ARB, 8,
#if USE_MSAA
WGL_SAMPLE_BUFFERS_ARB, TRUE,