Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index c891508329fcff14daba9b452d276f9251117e6a..9be7567ea08ec651782cd2244c501f96e851fc11 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -800,10 +800,12 @@ SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev |
#endif |
fDeviceType = kRaster_DeviceType; |
+#if SK_SUPPORT_GPU |
if (FLAGS_gpu) { |
fDeviceType = kGPU_DeviceType; |
} |
- |
+#endif |
+ |
#if DEFAULT_TO_GPU |
fDeviceType = kGPU_DeviceType; |
#endif |