diff options
Diffstat (limited to 'tools/sk_app/GLWindowContext.cpp')
-rw-r--r-- | tools/sk_app/GLWindowContext.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/tools/sk_app/GLWindowContext.cpp b/tools/sk_app/GLWindowContext.cpp index b6a8df9105..5bcc759dab 100644 --- a/tools/sk_app/GLWindowContext.cpp +++ b/tools/sk_app/GLWindowContext.cpp @@ -56,15 +56,12 @@ void GLWindowContext::destroyContext() { sk_sp<SkSurface> GLWindowContext::getBackbufferSurface() { if (nullptr == fSurface) { if (fContext) { - GrGLFramebufferInfo fbInfo; GrGLint buffer; - GR_GL_CALL(fBackendContext.get(), GetIntegerv(GR_GL_FRAMEBUFFER_BINDING, - &buffer)); + GR_GL_CALL(fBackendContext.get(), GetIntegerv(GR_GL_FRAMEBUFFER_BINDING, &buffer)); + + GrGLFramebufferInfo fbInfo; fbInfo.fFBOID = buffer; - fbInfo.fFormat = - fContext->contextPriv().caps()->srgbSupport() && fDisplayParams.fColorSpace - ? GR_GL_SRGB8_ALPHA8 - : GR_GL_RGBA8; + fbInfo.fFormat = GR_GL_RGBA8; GrBackendRenderTarget backendRT(fWidth, fHeight, |