diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-09-16 16:52:13 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-09-19 21:32:21 +0200 |
commit | 9d5e8092618c94918d90bf62374a14d087d4818f (patch) | |
tree | 76e4a93fb0d03a14dae464dc8db0ca170e43e816 /vcl/opengl/gdiimpl.cxx | |
parent | 535777532e4980af6ff3ae3cb15eff786fb6eff2 (diff) |
tdf#94281 - don't mix legacy and VCL OpenGLContext's.
Each has rather different assumptions about how life should be.
Change-Id: I85fffc77d14f3a5335a077fcb541a2b31c372043
Reviewed-on: https://gerrit.libreoffice.org/18644
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'vcl/opengl/gdiimpl.cxx')
-rw-r--r-- | vcl/opengl/gdiimpl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/opengl/gdiimpl.cxx b/vcl/opengl/gdiimpl.cxx index d452f5d18cd8..b2e047c2943f 100644 --- a/vcl/opengl/gdiimpl.cxx +++ b/vcl/opengl/gdiimpl.cxx @@ -1881,4 +1881,11 @@ OpenGLContext *OpenGLSalGraphicsImpl::beginPaint() return mpContext.get(); } +bool OpenGLSalGraphicsImpl::IsForeignContext(const rtl::Reference<OpenGLContext> &xContext) +{ + // so far a blunt heuristic: vcl uses shiny new contexts. + return xContext->requestedLegacy(); +} + + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |