summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2020-02-13 16:01:33 +0100
committerLuboš Luňák <l.lunak@collabora.com>2020-02-13 16:02:35 +0100
commite76bb4eab607148381e70310ef9e22cc6213555a (patch)
tree08d85ba6295af6083013f55b27a46dba9a8d0647
parent7fcac1989c8dd853779bbd04c4eaddc50a5bbc5e (diff)
make sure SAL_SKIA=vulkan also overrides settings
Change-Id: I2933fec07b594c47520087664f50d48184122818
-rw-r--r--vcl/skia/SkiaHelper.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/skia/SkiaHelper.cxx b/vcl/skia/SkiaHelper.cxx
index c305c5275ea5..c0972ab2e0a0 100644
--- a/vcl/skia/SkiaHelper.cxx
+++ b/vcl/skia/SkiaHelper.cxx
@@ -180,6 +180,13 @@ static bool initRenderMethodToUse()
methodToUse = RenderRaster;
return true;
}
+ if (strcmp(env, "vulkan") == 0)
+ {
+ methodToUse = RenderVulkan;
+ return true;
+ }
+ SAL_WARN("vcl.skia", "Unrecognized value of SAL_SKIA");
+ abort();
}
if (officecfg::Office::Common::VCL::ForceSkiaRaster::get())
{