| Index: src/gpu/gl/mesa/SkMesaGLContext.cpp
|
| diff --git a/src/gpu/gl/mesa/SkMesaGLContext.cpp b/src/gpu/gl/mesa/SkMesaGLContext.cpp
|
| index 58e325dfeb82745d2ede8e4f2093e3f385ffe611..31402c5a3cf79cd3ebcd392ba5a85c1114583867 100644
|
| --- a/src/gpu/gl/mesa/SkMesaGLContext.cpp
|
| +++ b/src/gpu/gl/mesa/SkMesaGLContext.cpp
|
| @@ -13,7 +13,7 @@
|
|
|
| SkMesaGLContext::AutoContextRestore::AutoContextRestore() {
|
| fOldContext = (Context)OSMesaGetCurrentContext();
|
| - if (NULL != (OSMesaContext)fOldContext) {
|
| + if (fOldContext) {
|
| OSMesaGetColorBuffer((OSMesaContext)fOldContext,
|
| &fOldWidth, &fOldHeight,
|
| &fOldFormat, &fOldImage);
|
| @@ -21,7 +21,7 @@ SkMesaGLContext::AutoContextRestore::AutoContextRestore() {
|
| }
|
|
|
| SkMesaGLContext::AutoContextRestore::~AutoContextRestore() {
|
| - if (NULL != (OSMesaContext)fOldContext) {
|
| + if (fOldContext) {
|
| OSMesaMakeCurrent((OSMesaContext)fOldContext, fOldImage,
|
| fOldFormat, fOldWidth, fOldHeight);
|
| }
|
|
|