diff options
author | reed <reed@google.com> | 2014-10-30 11:29:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-10-30 11:29:08 -0700 |
commit | 789e327ad9c9f7d25b2368b4f3f9812bf9f0a3a2 (patch) | |
tree | 61dbf1f8f79d198f9febe4503eb518b8e8b48862 /src | |
parent | 902d4d18dec27b6991516a235fc04a7af7290287 (diff) |
tell our grcontext to abandon its backend
BUG=skia:
Review URL: https://codereview.chromium.org/692803003
Diffstat (limited to 'src')
-rw-r--r-- | src/views/mac/SkNSView.mm | 1 |
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) { |