summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-11-30 21:00:31 +0100
committerJan Holesovsky <kendy@collabora.com>2014-12-02 15:47:38 +0100
commita915cfcf5c200f521fe8f8724d57c18b5eb4ca6f (patch)
tree6a056f1c79daac3e2ec3b7965711a8356b824444
parent1ac0c5ef3f63e864cc018564a3057a7d26c85146 (diff)
block all RDP sessions from using OpenGL
Normally you only get the Microsoft OpenGL 1.1 driver for RDP so it is save to just block it. Change-Id: Id9b3af23d56926b09316fbf8b873e271060d2c6a
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index 41f1a2b7db9b..c9bf1ff30961 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -682,6 +682,12 @@ bool WinOpenGLDeviceInfo::isDeviceBlocked()
// out of static blocks (i.e. if we were wrong or something was patched, we
// can back out our static block without doing a release).
+ if (mbRDP)
+ {
+ SAL_WARN("vcl.opengl", "all OpenGL blocked for RDP sessions");
+ return true;
+ }
+
return FindBlocklistedDeviceInList();
}