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
0da94d49
Commit
0da94d49
authored
May 18, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Add a test for D3DXLoadSurfaceFromSurface.
parent
d7a633a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
surface.c
dlls/d3dx9_36/tests/surface.c
+13
-0
No files found.
dlls/d3dx9_36/tests/surface.c
View file @
0da94d49
...
...
@@ -437,6 +437,7 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
{
HRESULT
hr
;
BOOL
testdummy_ok
,
testbitmap_ok
;
IDirect3DTexture9
*
tex
;
IDirect3DSurface9
*
surf
,
*
newsurf
;
RECT
rect
,
destrect
;
D3DLOCKED_RECT
lockrect
;
...
...
@@ -586,6 +587,18 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
check_release
((
IUnknown
*
)
newsurf
,
0
);
}
else
skip
(
"Failed to create a second surface
\n
"
);
hr
=
IDirect3DDevice9_CreateTexture
(
device
,
256
,
256
,
0
,
0
,
D3DFMT_A8R8G8B8
,
D3DPOOL_DEFAULT
,
&
tex
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
IDirect3DTexture9_GetSurfaceLevel
(
tex
,
0
,
&
newsurf
);
hr
=
D3DXLoadSurfaceFromSurface
(
newsurf
,
NULL
,
NULL
,
surf
,
NULL
,
NULL
,
D3DX_DEFAULT
,
0
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadSurfaceFromSurface returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
IDirect3DSurface9_Release
(
newsurf
);
IDirect3DTexture9_Release
(
tex
);
}
else
skip
(
"Failed to create texture
\n
"
);
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