aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/views/win/SkOSWindow_win.cpp
diff options
context:
space:
mode:
authorGravatar plesner <plesner@t.undra.org>2015-11-05 08:10:45 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-11-05 08:10:45 -0800
commitd975fc9599e2e6f909d3a11913ce1ab63525ab31 (patch)
tree058381e9a4d656e0e47105cf0a5ae759a221940d /src/views/win/SkOSWindow_win.cpp
parent2944fbb5329fc3026c541fa818489954d910625d (diff)
Add ifdef guard around gpu-specific code in native windows window.
Diffstat (limited to 'src/views/win/SkOSWindow_win.cpp')
-rw-r--r--src/views/win/SkOSWindow_win.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index aba5a6f4ae..4b7abb1e96 100644
--- a/src/views/win/SkOSWindow_win.cpp
+++ b/src/views/win/SkOSWindow_win.cpp
@@ -692,9 +692,11 @@ bool SkOSWindow::makeFullscreen() {
if (fFullscreen) {
return true;
}
+#if SK_SUPPORT_GPU
if (fHGLRC) {
this->detachGL();
}
+#endif // SK_SUPPORT_GPU
// This is hacked together from various sources on the web. It can certainly be improved and be
// made more robust.