aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-10-30 11:29:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-10-30 11:29:08 -0700
commit789e327ad9c9f7d25b2368b4f3f9812bf9f0a3a2 (patch)
tree61dbf1f8f79d198f9febe4503eb518b8e8b48862 /src
parent902d4d18dec27b6991516a235fc04a7af7290287 (diff)
tell our grcontext to abandon its backend
Diffstat (limited to 'src')
-rw-r--r--src/views/mac/SkNSView.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/views/mac/SkNSView.mm b/src/views/mac/SkNSView.mm
index e1e03d670b..7ca23f40e5 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) {