Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Davide Beatrici
wine
Commits
3e3e347e
Commit
3e3e347e
authored
10 months ago
by
Nikolay Sivov
Committed by
Alexandre Julliard
10 months ago
Browse files
Options
Downloads
Patches
Plain Diff
d2d1/tests: Add a test for effect output image interface query.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
51b13e77
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/d2d1/tests/d2d1.c
+13
-1
13 additions, 1 deletion
dlls/d2d1/tests/d2d1.c
with
13 additions
and
1 deletion
dlls/d2d1/tests/d2d1.c
+
13
−
1
View file @
3e3e347e
...
...
@@ -10947,14 +10947,15 @@ static void test_builtin_effect(BOOL d3d11)
unsigned int i, j, min_inputs, max_inputs, str_size, input_count;
D2D1_BITMAP_PROPERTIES bitmap_desc;
D2D1_BUFFER_PRECISION precision;
ID2D1Effect *effect, *effect2;
ID2D1Image *image_a, *image_b;
struct d2d1_test_context ctx;
ID2D1DeviceContext *context;
ID2D1Factory1 *factory;
ID2D1Bitmap *bitmap;
ID2D1Effect *effect;
D2D1_SIZE_U size;
BYTE buffer[256];
IUnknown *unk;
BOOL cached;
CLSID clsid;
HRESULT hr;
...
...
@@ -11009,6 +11010,17 @@ static void test_builtin_effect(BOOL d3d11)
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
ID2D1Effect_GetOutput(effect, &image_b);
ok(image_b == image_a, "Got unexpected image_b %p, expected %p.\n", image_b, image_a);
hr = ID2D1Image_QueryInterface(image_a, &IID_ID2D1Effect, (void **)&effect2);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
ok(effect2 == effect, "Unexpected pointer.\n");
ID2D1Effect_Release(effect2);
hr = ID2D1Image_QueryInterface(image_a, &IID_IUnknown, (void **)&unk);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
ok(unk == (IUnknown *)effect, "Unexpected pointer.\n");
IUnknown_Release(unk);
ID2D1Image_Release(image_b);
ID2D1Image_Release(image_a);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment