From f67d89ebde22bdef6d82f7a613f7f0fac794dd45 Mon Sep 17 00:00:00 2001 From: Eirik Aavitsland Date: Thu, 2 Jun 2022 16:40:05 +0200 Subject: 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 --- tests/manual/lance/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'tests/manual/lance/main.cpp') 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; -- cgit v1.2.3