aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/mesa/SkMesaGLContext.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 18:10:41 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-03-01 18:10:41 +0000
commitdf8114d84616f8a85a5064f8deef2cca083193f8 (patch)
treef5331dbd96c2e41d2f6151da5340fdbac10ae354 /src/gpu/gl/mesa/SkMesaGLContext.cpp
parentc5d71e2a9714e5e86a959d6aaeb31d5434d26619 (diff)
Fix mesa issues.
R=robertphillips@google.com Review URL: https://codereview.chromium.org/12389055 git-svn-id: http://skia.googlecode.com/svn/trunk@7928 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/gl/mesa/SkMesaGLContext.cpp')
-rw-r--r--src/gpu/gl/mesa/SkMesaGLContext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gpu/gl/mesa/SkMesaGLContext.cpp b/src/gpu/gl/mesa/SkMesaGLContext.cpp
index 6c6e4228f3..2be0c13036 100644
--- a/src/gpu/gl/mesa/SkMesaGLContext.cpp
+++ b/src/gpu/gl/mesa/SkMesaGLContext.cpp
@@ -42,10 +42,12 @@ SkMesaGLContext::~SkMesaGLContext() {
void SkMesaGLContext::destroyGLContext() {
if (fImage) {
sk_free(fImage);
+ fImage = NULL;
}
if (fContext) {
OSMesaDestroyContext((OSMesaContext)fContext);
+ fContext = static_cast<Context>(NULL);
}
}