Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
1b467521
Commit
1b467521
authored
May 31, 2022
by
Piotr Caban
Committed by
Alexandre Julliard
Jun 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx10/tests: Add D3DX10CreateTextureFromMemory thread pump tests.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
parent
696071af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
d3dx10.c
dlls/d3dx10_43/tests/d3dx10.c
+11
-1
No files found.
dlls/d3dx10_43/tests/d3dx10.c
View file @
1b467521
...
...
@@ -848,7 +848,6 @@ static HRESULT WINAPI D3DX10ThreadPump_AddWorkItem(ID3DX10ThreadPump *iface, ID3
HRESULT
hr
;
ok
(
!
add_work_item_count
++
,
"unexpected call
\n
"
);
ok
(
!
object
,
"object = %p
\n
"
,
object
);
hr
=
ID3DX10DataLoader_Load
(
loader
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
...
...
@@ -2290,6 +2289,17 @@ static void test_create_texture(void)
winetest_pop_context
();
}
hr2
=
0xdeadbeef
;
add_work_item_count
=
0
;
hr
=
D3DX10CreateTextureFromMemory
(
device
,
test_image
[
0
].
data
,
test_image
[
0
].
size
,
NULL
,
&
thread_pump
,
&
resource
,
&
hr2
);
ok
(
add_work_item_count
==
1
,
"Got unexpected add_work_item_count %u.
\n
"
,
add_work_item_count
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#x.
\n
"
,
hr
);
ok
(
hr
==
hr2
,
"Got unexpected hr2 %#x.
\n
"
,
hr2
);
check_resource_info
(
resource
,
test_image
,
__LINE__
);
check_resource_data
(
resource
,
test_image
,
__LINE__
);
ID3D10Resource_Release
(
resource
);
/* D3DX10CreateTextureFromFile tests */
hr2
=
0xdeadbeef
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment