aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/sk_app/ios/GLWindowContext_ios.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sk_app/ios/GLWindowContext_ios.cpp')
-rw-r--r--tools/sk_app/ios/GLWindowContext_ios.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/sk_app/ios/GLWindowContext_ios.cpp b/tools/sk_app/ios/GLWindowContext_ios.cpp
index f4c0d6b3c0..2a57b33e30 100644
--- a/tools/sk_app/ios/GLWindowContext_ios.cpp
+++ b/tools/sk_app/ios/GLWindowContext_ios.cpp
@@ -67,6 +67,7 @@ sk_sp<const GrGLInterface> GLWindowContext_ios::onInitializeContext() {
SDL_GL_GetAttribute(SDL_GL_STENCIL_SIZE, &fStencilBits);
SDL_GL_GetAttribute(SDL_GL_MULTISAMPLESAMPLES, &fSampleCount);
+ fSampleCount = SkTMax(fSampleCount, 1);
SDL_GL_GetDrawableSize(fWindow, &fWidth, &fHeight);
glViewport(0, 0, fWidth, fHeight);