Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
d96d0af8
Commit
d96d0af8
authored
Mar 13, 2014
by
Matteo Bruni
Committed by
Alexandre Julliard
Mar 13, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Skip some volume tests if loading the texture fails.
parent
db4bf1e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
volume.c
dlls/d3dx9_36/tests/volume.c
+6
-1
No files found.
dlls/d3dx9_36/tests/volume.c
View file @
d96d0af8
...
...
@@ -73,7 +73,7 @@ static void test_D3DXLoadVolumeFromMemory(IDirect3DDevice9 *device)
&
volume_texture
,
NULL
);
if
(
FAILED
(
hr
))
{
skip
(
"Failed to create volume texture
\n
"
);
skip
(
"Failed to create volume texture
.
\n
"
);
return
;
}
...
...
@@ -84,6 +84,11 @@ static void test_D3DXLoadVolumeFromMemory(IDirect3DDevice9 *device)
hr
=
D3DXLoadVolumeFromMemory
(
volume
,
NULL
,
&
dst_box
,
pixels
,
D3DFMT_A8R8G8B8
,
16
,
16
,
NULL
,
&
src_box
,
D3DX_DEFAULT
,
0
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadVolumeFromMemory returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
if
(
FAILED
(
hr
))
{
win_skip
(
"D3DXLoadVolumeFromMemory failed with error %#x, skipping some tests.
\n
"
,
hr
);
return
;
}
IDirect3DVolume9_LockBox
(
volume
,
&
locked_box
,
&
dst_box
,
D3DLOCK_READONLY
);
for
(
i
=
0
;
i
<
16
;
i
++
)
check_pixel_4bpp
(
&
locked_box
,
i
%
4
,
0
,
i
/
4
,
pixels
[
i
]);
...
...
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