Index: src/gpu/gl/angle/SkANGLEGLContext.cpp |
diff --git a/src/gpu/gl/angle/SkANGLEGLContext.cpp b/src/gpu/gl/angle/SkANGLEGLContext.cpp |
index 884fe7ca11c1b4aac229a33de41caae364865cfc..81fccebba0cf08a9932d67a1a88abe1be89d0f41 100644 |
--- a/src/gpu/gl/angle/SkANGLEGLContext.cpp |
+++ b/src/gpu/gl/angle/SkANGLEGLContext.cpp |
@@ -16,7 +16,7 @@ SkANGLEGLContext::AutoContextRestore::AutoContextRestore() { |
} |
SkANGLEGLContext::AutoContextRestore::~AutoContextRestore() { |
- if (NULL != fOldDisplay) { |
+ if (fOldDisplay) { |
eglMakeCurrent(fOldDisplay, fOldSurface, fOldSurface, fOldEGLContext); |
} |
} |