Index: src/gpu/gl/android/SkNativeGLContext_android.cpp |
diff --git a/src/gpu/gl/android/SkNativeGLContext_android.cpp b/src/gpu/gl/android/SkNativeGLContext_android.cpp |
index 705bd8f49caa5cd417622098a8ee47bf76a4dd71..2e605c79db39b13222fdcfcb2f0b97c7fe434b38 100644 |
--- a/src/gpu/gl/android/SkNativeGLContext_android.cpp |
+++ b/src/gpu/gl/android/SkNativeGLContext_android.cpp |
@@ -15,7 +15,7 @@ SkNativeGLContext::AutoContextRestore::AutoContextRestore() { |
} |
SkNativeGLContext::AutoContextRestore::~AutoContextRestore() { |
- if (NULL != fOldDisplay) { |
+ if (fOldDisplay) { |
eglMakeCurrent(fOldDisplay, fOldSurface, fOldSurface, fOldEGLContext); |
} |
} |