diff options
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 3efffe6..f05fe6e 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -848,7 +848,7 @@ void SampleWindow::afterChildren(SkCanvas* orig) { break; #ifdef SK_SUPPORT_GL case kGPU_CanvasType: - if (fShowZoomer) { + if (fShowZoomer && fGpuCanvas) { this->showZoomer(fGpuCanvas); } delete fGpuCanvas; |