summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/opengl/win/WinDeviceInfo.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/win/WinDeviceInfo.cxx b/vcl/opengl/win/WinDeviceInfo.cxx
index 7d1c837d5a1f..99bc7a2b206b 100644
--- a/vcl/opengl/win/WinDeviceInfo.cxx
+++ b/vcl/opengl/win/WinDeviceInfo.cxx
@@ -554,8 +554,6 @@ OUString getCacheFolder()
return url;
}
-OUString aCacheFolder = getCacheFolder();
-
void writeToLog(SvStream& rStrm, const char* pKey, const OUString rVal)
{
rStrm.WriteCharPtr(pKey);
@@ -577,6 +575,8 @@ bool WinOpenGLDeviceInfo::isDeviceBlocked()
SAL_INFO("vcl.opengl", maDeviceKey);
SAL_INFO("vcl.opengl", maDeviceString);
+ OUString aCacheFolder = getCacheFolder();
+
OUString aCacheFile(aCacheFolder + "/opengl_device.log");
SvFileStream aOpenGLLogFile(aCacheFile, StreamMode::WRITE);