| Index: src/gpu/gl/unix/SkNativeGLContext_unix.cpp
|
| diff --git a/src/gpu/gl/unix/SkNativeGLContext_unix.cpp b/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
|
| index 4910057c9734359f060a54b6b8256e5ed8cba28f..bd130b545cd9af62de9002dfbc6aef2f0e4b85da 100644
|
| --- a/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
|
| +++ b/src/gpu/gl/unix/SkNativeGLContext_unix.cpp
|
| @@ -18,7 +18,7 @@ SkNativeGLContext::AutoContextRestore::AutoContextRestore() {
|
| }
|
|
|
| SkNativeGLContext::AutoContextRestore::~AutoContextRestore() {
|
| - if (NULL != fOldDisplay) {
|
| + if (fOldDisplay) {
|
| glXMakeCurrent(fOldDisplay, fOldDrawable, fOldGLXContext);
|
| }
|
| }
|
|
|