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
64b6bb4d
Commit
64b6bb4d
authored
Jan 24, 2019
by
Matteo Bruni
Committed by
Alexandre Julliard
Jan 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Expect plain render target creation to work.
Signed-off-by:
Matteo Bruni
<
mbruni@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b61d4255
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
9 deletions
+12
-9
surface.c
dlls/d3dx9_36/tests/surface.c
+12
-9
No files found.
dlls/d3dx9_36/tests/surface.c
View file @
64b6bb4d
...
...
@@ -847,21 +847,24 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
/* non-lockable render target */
hr
=
IDirect3DDevice9_CreateRenderTarget
(
device
,
256
,
256
,
D3DFMT_A8R8G8B8
,
D3DMULTISAMPLE_NONE
,
0
,
FALSE
,
&
newsurf
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXLoadSurfaceFromSurface
(
surf
,
NULL
,
NULL
,
newsurf
,
NULL
,
NULL
,
D3DX_FILTER_NONE
,
0
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadSurfaceFromSurface returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
IDirect3DSurface9_Release
(
newsurf
);
}
else
skip
(
"Failed to create render target surface
\n
"
);
ok
(
hr
==
D3D_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
hr
=
D3DXLoadSurfaceFromSurface
(
surf
,
NULL
,
NULL
,
newsurf
,
NULL
,
NULL
,
D3DX_FILTER_NONE
,
0
);
ok
(
hr
==
D3D_OK
,
"Unexpected hr %#x.
\n
"
,
hr
);
IDirect3DSurface9_Release
(
newsurf
);
/* non-lockable multisampled render target */
hr
=
IDirect3DDevice9_CreateRenderTarget
(
device
,
256
,
256
,
D3DFMT_A8R8G8B8
,
D3DMULTISAMPLE_2_SAMPLES
,
0
,
FALSE
,
&
newsurf
,
NULL
);
if
(
SUCCEEDED
(
hr
))
{
if
(
SUCCEEDED
(
hr
))
{
hr
=
D3DXLoadSurfaceFromSurface
(
surf
,
NULL
,
NULL
,
newsurf
,
NULL
,
NULL
,
D3DX_FILTER_NONE
,
0
);
ok
(
hr
==
D3D_OK
,
"
D3DXLoadSurfaceFromSurface returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
ok
(
hr
==
D3D_OK
,
"
Unexpected hr %#x.
\n
"
,
hr
);
IDirect3DSurface9_Release
(
newsurf
);
}
else
skip
(
"Failed to create multisampled render target.
\n
"
);
}
else
{
skip
(
"Failed to create multisampled render target.
\n
"
);
}
hr
=
IDirect3DDevice9_GetRenderTarget
(
device
,
0
,
&
newsurf
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice9_GetRenderTarget returned %#x, expected %#x.
\n
"
,
hr
,
D3D_OK
);
...
...
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