diff options
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: */ |