summaryrefslogtreecommitdiff
path: root/vcl/opengl/x11/X11DeviceInfo.cxx
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-11-25 17:10:39 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-02-26 11:28:58 +0000
commit97474cae830524fe57887d26743760bd49bb47ec (patch)
tree4586df54d78ee42fe185bb2900cae40e33cc153f /vcl/opengl/x11/X11DeviceInfo.cxx
parent236f3089175c601e2be36d034b3214d06be89767 (diff)
log some information about used OpenGL device
Change-Id: I0c050396e6b1efa7dd2f003a79a9dc506135197a Reviewed-on: https://gerrit.libreoffice.org/22555 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl/opengl/x11/X11DeviceInfo.cxx')
-rw-r--r--vcl/opengl/x11/X11DeviceInfo.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/opengl/x11/X11DeviceInfo.cxx b/vcl/opengl/x11/X11DeviceInfo.cxx
index 4a5a9c30d0e6..4be9619bb2d2 100644
--- a/vcl/opengl/x11/X11DeviceInfo.cxx
+++ b/vcl/opengl/x11/X11DeviceInfo.cxx
@@ -20,6 +20,8 @@
#include <errno.h>
#include <sys/utsname.h>
+#include <desktop/crashreport.hxx>
+
namespace glx {
static int glxtest_pipe = 0;
@@ -288,6 +290,9 @@ bool X11OpenGLDeviceInfo::isDeviceBlocked()
if (mnGLMajorVersion == 1)
return true;
+ CrashReporter::AddKeyValue("AdapterVendorId", rtl::OStringToOUString(maVendor, RTL_TEXTENCODING_UTF8));
+ CrashReporter::AddKeyValue("AdapterDeviceId", rtl::OStringToOUString(maRenderer, RTL_TEXTENCODING_UTF8));
+
SAL_INFO("vcl.opengl", "Vendor: " << maVendor);
SAL_INFO("vcl.opengl", "Renderer: " << maRenderer);
SAL_INFO("vcl.opengl", "Version: " << maVersion);