aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode
diff options
context:
space:
mode:
authorGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-10 13:34:11 +0000
committerGravatar robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-04-10 13:34:11 +0000
commit4750fa55f27e43770e7f5f3161ebdbac42e0da8a (patch)
treec83868b8b2e1dd3ade71148192157b30555b0923 /samplecode
parent363a4c22af71b8afedc00050ee5cc97fe4bd6f76 (diff)
Minor bug fix in SampleApp
Diffstat (limited to 'samplecode')
-rw-r--r--samplecode/SampleApp.cpp5
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());