diff options
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/QT/SkGLWidget.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/debugger/QT/SkGLWidget.cpp b/debugger/QT/SkGLWidget.cpp index dece6419ab..bd24d4e3cb 100644 --- a/debugger/QT/SkGLWidget.cpp +++ b/debugger/QT/SkGLWidget.cpp @@ -47,7 +47,8 @@ void SkGLWidget::initializeGL() { GrBackendRenderTargetDesc desc = this->getDesc(this->width(), this->height()); desc.fOrigin = kBottomLeft_GrSurfaceOrigin; GrRenderTarget* curRenderTarget = fCurContext->wrapBackendRenderTarget(desc); - fGpuDevice = SkGpuDevice::Create(curRenderTarget); + fGpuDevice = SkGpuDevice::Create(curRenderTarget, + SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)); fCanvas = new SkCanvas(fGpuDevice); curRenderTarget->unref(); } @@ -65,7 +66,8 @@ void SkGLWidget::resizeGL(int w, int h) { GrRenderTarget* curRenderTarget = fCurContext->wrapBackendRenderTarget(desc); SkSafeUnref(fGpuDevice); SkSafeUnref(fCanvas); - fGpuDevice = SkGpuDevice::Create(curRenderTarget); + fGpuDevice = SkGpuDevice::Create(curRenderTarget, + SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType)); fCanvas = new SkCanvas(fGpuDevice); } fDebugger->setWindowSize(w, h); |