aboutsummaryrefslogtreecommitdiffhomepage
path: root/example/HelloWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'example/HelloWorld.cpp')
-rw-r--r--example/HelloWorld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/HelloWorld.cpp b/example/HelloWorld.cpp
index 464ec4429d..2375e0016f 100644
--- a/example/HelloWorld.cpp
+++ b/example/HelloWorld.cpp
@@ -70,7 +70,7 @@ bool HelloWorldWindow::setUpBackend() {
fInterface = GrGLCreateNativeInterface();
SkASSERT(NULL != fInterface);
- fContext = GrContext::Create(kOpenGL_GrBackend, (GrBackendContext)fInterface);
+ fContext = GrContext::MakeGL(fInterface).release();
SkASSERT(NULL != fContext);
this->setUpGpuBackedSurface();