aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_app/win/GLWindowContext_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sk_app/win/GLWindowContext_win.cpp')
-rw-r--r--tools/sk_app/win/GLWindowContext_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/sk_app/win/GLWindowContext_win.cpp b/tools/sk_app/win/GLWindowContext_win.cpp
index 7e43d2b544..1c583cb1ed 100644
--- a/tools/sk_app/win/GLWindowContext_win.cpp
+++ b/tools/sk_app/win/GLWindowContext_win.cpp
@@ -96,8 +96,9 @@ sk_sp<const GrGLInterface> GLWindowContext_win::onInitializeContext() {
1,
&kSampleCountAttr,
&fSampleCount);
+ fSampleCount = SkTMax(fSampleCount, 1);
} else {
- fSampleCount = 0;
+ fSampleCount = 1;
}
RECT rect;