Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / skia / src / gpu / gl / angle / SkANGLEGLContext.cpp
index 884fe7c..81fcceb 100644 (file)
@@ -16,7 +16,7 @@ SkANGLEGLContext::AutoContextRestore::AutoContextRestore() {
 }
 
 SkANGLEGLContext::AutoContextRestore::~AutoContextRestore() {
-    if (NULL != fOldDisplay) {
+    if (fOldDisplay) {
         eglMakeCurrent(fOldDisplay, fOldSurface, fOldSurface, fOldEGLContext);
     }
 }