diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-05-25 08:52:52 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-05-25 11:51:24 +0200 |
commit | d77db907465547f8704fd32b2c90165b54873dba (patch) | |
tree | d0e58d9fecad2940919f8fb06a001a2146c5ed97 /vcl/unx | |
parent | 04a36851aab1272c9c21ac97d0fc0f4ffe372fe0 (diff) |
tdf#149068 put a OpenGLZone around the sync indirect opengl calls
to get the opengl version
Change-Id: Ibd55974a39d9d79c9ec9a03e4d4482e4e8755471
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134924
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index 481bb8b573f7..6e2dc24590d1 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -95,8 +95,8 @@ #include <strings.hrc> #include <window.h> #include <numeric> - #include <boost/property_tree/ptree.hpp> +#include <opengl/zone.hxx> using namespace com::sun::star; using namespace com::sun::star::uno; @@ -1974,6 +1974,7 @@ private: { if (gdk_gl_context_realize(pContext, nullptr)) { + OpenGLZone aZone; gdk_gl_context_make_current(pContext); gdk_gl_context_get_version(pContext, &nMajorGLVersion, nullptr); gdk_gl_context_clear_current(); |