diff options
Diffstat (limited to 'tools/sk_app/win/GLWindowContext_win.cpp')
-rw-r--r-- | tools/sk_app/win/GLWindowContext_win.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/sk_app/win/GLWindowContext_win.cpp b/tools/sk_app/win/GLWindowContext_win.cpp index 17a6b32962..7e43d2b544 100644 --- a/tools/sk_app/win/GLWindowContext_win.cpp +++ b/tools/sk_app/win/GLWindowContext_win.cpp @@ -61,9 +61,9 @@ sk_sp<const GrGLInterface> GLWindowContext_win::onInitializeContext() { // Look to see if RenderDoc is attached. If so, re-create the context with a core profile if (wglMakeCurrent(dc, fHGLRC)) { - const GrGLInterface* glInterface = GrGLCreateNativeInterface(); - bool renderDocAttached = glInterface->hasExtension("GL_EXT_debug_tool"); - SkSafeUnref(glInterface); + auto interface = GrGLMakeNativeInterface(); + bool renderDocAttached = interface->hasExtension("GL_EXT_debug_tool"); + interface.reset(nullptr); if (renderDocAttached) { wglDeleteContext(fHGLRC); fHGLRC = SkCreateWGLContext(dc, fDisplayParams.fMSAASampleCount, false /* deepColor */, @@ -106,7 +106,7 @@ sk_sp<const GrGLInterface> GLWindowContext_win::onInitializeContext() { fHeight = rect.bottom - rect.top; glViewport(0, 0, fWidth, fHeight); } - return sk_sp<const GrGLInterface>(GrGLCreateNativeInterface()); + return GrGLMakeNativeInterface(); } |