diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp index 669d6d0182..c09f0b3258 100644 --- a/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp +++ b/tools/gpu/gl/win/CreatePlatformGLTestContext_win.cpp @@ -39,7 +39,7 @@ private: HDC fDeviceContext; HGLRC fGlRenderContext; static ATOM gWC; - SkWGLPbufferContext* fPbufferContext; + sk_sp<SkWGLPbufferContext> fPbufferContext; }; ATOM WinGLTestContext::gWC = 0; @@ -148,7 +148,7 @@ WinGLTestContext::~WinGLTestContext() { } void WinGLTestContext::destroyGLContext() { - SkSafeSetNull(fPbufferContext); + fPbufferContext = nullptr; if (fGlRenderContext) { // This deletes the context immediately even if it is current. wglDeleteContext(fGlRenderContext); |