summaryrefslogtreecommitdiffstatsci
path: root/gunit_tests/patternDraw.cpp
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-10-25 20:26:16 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2026-10-25 20:26:16 +0100
commit325b693e0c437a6b0f30bf701f097f4d927f2c17 (patch)
tree5dce7469a467b9fab0b676fb02cf3e8978e0ab53 /gunit_tests/patternDraw.cpp
parentd66b32c0b9c2bd635924a3a219aba1d82a1faa0a (diff)
remove spurious bind, add required ones, emit_draw_cmd if new pattern is img or gradient
Diffstat (limited to 'gunit_tests/patternDraw.cpp')
-rw-r--r--gunit_tests/patternDraw.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/gunit_tests/patternDraw.cpp b/gunit_tests/patternDraw.cpp
index ef04e39..1c2a80f 100644
--- a/gunit_tests/patternDraw.cpp
+++ b/gunit_tests/patternDraw.cpp
@@ -177,6 +177,18 @@ TEST_F(PatternDrawTest, PaintImgPattern) {
compareWithRefImage();
}
+TEST_F(PatternDrawTest, PaintImgAfterFlush) {
+
+ VkvgContext ctx = vkvg_create(surf);
+ VkvgPattern pat = vkvg_pattern_create_for_surface(imgSurf);
+ vkvg_set_source(ctx, pat);
+ vkvg_flush(ctx);
+ vkvg_paint(ctx);
+ vkvg_pattern_destroy(pat);
+ vkvg_destroy(ctx);
+
+ compareWithRefImage();
+}
TEST_F(PatternDrawTest, FillImgPattern) {
VkvgContext ctx = vkvg_create(surf);