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
3db6a671
Commit
3db6a671
authored
Jun 25, 2009
by
Tony Wasserka
Committed by
Alexandre Julliard
Jun 26, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9: Add tests for D3DXLoadSurfaceFromSurface.
parent
be8afaff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
texture.c
dlls/d3dx9_36/tests/texture.c
+18
-1
No files found.
dlls/d3dx9_36/tests/texture.c
View file @
3db6a671
...
...
@@ -209,7 +209,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
{
HRESULT
hr
;
BOOL
testdummy_ok
,
testbitmap_ok
;
IDirect3DSurface9
*
surf
;
IDirect3DSurface9
*
surf
,
*
newsurf
;
RECT
rect
;
hr
=
create_file
(
"testdummy.bmp"
,
noimage
,
sizeof
(
noimage
));
/* invalid image */
...
...
@@ -319,6 +319,23 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
ok
(
hr
==
E_FAIL
,
"D3DXLoadSurfaceFromMemory returned %#x, expected %#x
\n
"
,
hr
,
E_FAIL
);
/* D3DXLoadSurfaceFromSurface */
hr
=
IDirect3DDevice9_CreateOffscreenPlainSurface
(
device
,
256
,
256
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
newsurf
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
todo_wine
{
hr
=
D3DXLoadSurfaceFromSurface
(
newsurf
,
NULL
,
NULL
,
surf
,
NULL
,
NULL
,
D3DX_DEFAULT
,
0
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadSurfaceFromSurface returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
}
hr
=
D3DXLoadSurfaceFromSurface
(
NULL
,
NULL
,
NULL
,
surf
,
NULL
,
NULL
,
D3DX_DEFAULT
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXLoadSurfaceFromSurface returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
D3DXLoadSurfaceFromSurface
(
newsurf
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
D3DX_DEFAULT
,
0
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXLoadSurfaceFromSurface returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
}
else
skip
(
"Failed to create a second surface
\n
"
);
check_release
((
IUnknown
*
)
newsurf
,
0
);
/* cleanup */
check_release
((
IUnknown
*
)
surf
,
0
);
...
...
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