diff options
Diffstat (limited to 'example')
-rw-r--r-- | example/HelloWorld.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp index bb29a0c3f5..892dce1c80 100644 --- a/example/HelloWorld.cpp +++ b/example/HelloWorld.cpp @@ -157,7 +157,8 @@ void HelloWorldWindow::draw(SkCanvas* canvas) { fRenderTarget->writePixels(0, 0, snap->width(), snap->height(), SkImageInfo2GrPixelConfig(info.colorType(), info.alphaType(), - info.profileType()), + info.profileType(), + *fContext->caps()), pmap.addr(), pmap.rowBytes(), GrContext::kFlushWrites_PixelOp); |