summaryrefslogtreecommitdiffstats
path: root/tests/manual/lance/main.cpp
diff options
context:
space:
mode:
authorEirik Aavitsland <eirik.aavitsland@qt.io>2022-06-02 16:40:05 +0200
committerEirik Aavitsland <eirik.aavitsland@qt.io>2022-06-04 21:15:42 +0200
commitf67d89ebde22bdef6d82f7a613f7f0fac794dd45 (patch)
tree90a4e9a18e8ca3891b18db8fa5d355fdfe9c488c /tests/manual/lance/main.cpp
parentf8c5f4b7b57afb3c808a1f3d061eda04960475d8 (diff)
Support cosmetic brush patterns in the pdf and opengl paint engines
This implements the recent functionality extension of painting cosmetic (untransformed) brush patterns, and the corresponding NonCosmeticBrushPatterns render hint, in the pdf and opengl paint engines. As part of the implementation it also fixes a couple of pre-existing bugs in the opengl engine, relating to updating the brush after changes in transformation or brush origin. As a driveby, it also includes a minor fix for the lance testing tool: request stencil buffer, as that is needed and not always provided by default. This echoes a recent fix done to tst_baseline_painting. Change-Id: Ia8811477e015eebeb40ed138bca96643ce1ab0dc Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'tests/manual/lance/main.cpp')
-rw-r--r--tests/manual/lance/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/manual/lance/main.cpp b/tests/manual/lance/main.cpp
index 53f094c5c6..e6474b10c8 100644
--- a/tests/manual/lance/main.cpp
+++ b/tests/manual/lance/main.cpp
@@ -191,6 +191,7 @@ int main(int argc, char **argv)
DeviceType type = WidgetType;
QSurfaceFormat contextFormat;
+ contextFormat.setStencilBufferSize(8);
bool checkers_background = true;
QImage::Format imageFormat = QImage::Format_ARGB32_Premultiplied;