diff options
Diffstat (limited to 'samplecode')
-rw-r--r-- | samplecode/SampleApp.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp index 1cd9c672aa..3ab9e8918a 100644 --- a/samplecode/SampleApp.cpp +++ b/samplecode/SampleApp.cpp @@ -659,7 +659,9 @@ static void usage(const char * argv0) { SkDebugf(" msaa: request multisampling with the given sample count.\n"); } -SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* devManager) : INHERITED(hwnd) { +SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* devManager) + : INHERITED(hwnd) + , fDevManager(NULL) { SkGMRegistyToSampleRegistry(); { @@ -1952,6 +1954,7 @@ void SampleWindow::updateTitle() { } if (gDeviceTypeIsGPU[fDeviceType] && + NULL != fDevManager && fDevManager->getGrRenderTarget()->numSamples() > 0) { title.appendf(" [MSAA: %d]", fDevManager->getGrRenderTarget()->numSamples()); |