diff options
Diffstat (limited to 'samplecode/SampleApp.cpp')
-rw-r--r-- | samplecode/SampleApp.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 1676fc3b13..c36e2e8604 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -276,8 +276,7 @@ public: } SkASSERT(nullptr == fCurContext); - fCurContext = GrContext::Create(kOpenGL_GrBackend, (GrBackendContext) fCurIntf, - backendOptions.fGrContextOptions); + fCurContext = GrContext::MakeGL(fCurIntf, backendOptions.fGrContextOptions).release(); if (nullptr == fCurContext || nullptr == fCurIntf) { // We need some context and interface to see results |