Index: src/views/mac/SkNSView.mm |
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm |
index e1e03d670b1e57e6c3a2a10d5fc14acd1b2af3bd..7ca23f40e523fb98096abb2c3ad502b38239182d 100644 |
--- a/src/views/mac/SkNSView.mm |
+++ b/src/views/mac/SkNSView.mm |
@@ -386,6 +386,7 @@ CGLContextObj createGLContext(int msaaSampleCount) { |
andGetInfo:(SkOSWindow::AttachmentInfo*) info { |
if (nil == fGLContext) { |
CGLContextObj ctx = createGLContext(sampleCount); |
+ SkASSERT(ctx); |
fGLContext = [[NSOpenGLContext alloc] initWithCGLContextObj:ctx]; |
CGLReleaseContext(ctx); |
if (NULL == fGLContext) { |