diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-10-25 20:26:16 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2026-10-25 20:26:16 +0100 |
| commit | 325b693e0c437a6b0f30bf701f097f4d927f2c17 (patch) | |
| tree | 5dce7469a467b9fab0b676fb02cf3e8978e0ab53 /gunit_tests/patternDraw.cpp | |
| parent | d66b32c0b9c2bd635924a3a219aba1d82a1faa0a (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.cpp | 12 |
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); |