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
171c18a5
Commit
171c18a5
authored
Dec 06, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Test StrechRect between depth stencils with different sizes.
parent
7ae81ba3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
visual.c
dlls/d3d9/tests/visual.c
+9
-1
No files found.
dlls/d3d9/tests/visual.c
View file @
171c18a5
...
...
@@ -11249,7 +11249,7 @@ static void depth_blit_test(IDirect3DDevice9 *device)
{
0x00ff0000
,
0x00ff0000
,
0x00ff0000
,
0x00ff0000
},
};
IDirect3DSurface9
*
backbuffer
,
*
ds1
,
*
ds2
;
IDirect3DSurface9
*
backbuffer
,
*
ds1
,
*
ds2
,
*
ds3
;
RECT
src_rect
,
dst_rect
;
unsigned
int
i
,
j
;
D3DVIEWPORT9
vp
;
...
...
@@ -11274,6 +11274,8 @@ static void depth_blit_test(IDirect3DDevice9 *device)
ok
(
SUCCEEDED
(
hr
),
"CreateDepthStencilSurface failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetDepthStencilSurface
(
device
,
ds2
);
ok
(
SUCCEEDED
(
hr
),
"SetDepthStencilSurface failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_CreateDepthStencilSurface
(
device
,
320
,
240
,
D3DFMT_D24S8
,
0
,
0
,
FALSE
,
&
ds3
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"CreateDepthStencilSurface failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetRenderState
(
device
,
D3DRS_LIGHTING
,
FALSE
);
ok
(
SUCCEEDED
(
hr
),
"SetRenderState failed, hr %#x.
\n
"
,
hr
);
...
...
@@ -11315,6 +11317,11 @@ static void depth_blit_test(IDirect3DDevice9 *device)
hr
=
IDirect3DDevice9_StretchRect
(
device
,
ds2
,
NULL
,
backbuffer
,
NULL
,
D3DTEXF_POINT
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"StretchRect returned %#x, expected %#x.
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
IDirect3DSurface9_Release
(
backbuffer
);
/* Full surface, different sizes */
hr
=
IDirect3DDevice9_StretchRect
(
device
,
ds3
,
NULL
,
ds1
,
NULL
,
D3DTEXF_POINT
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"StretchRect returned %#x, expected %#x.
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
IDirect3DDevice9_StretchRect
(
device
,
ds1
,
NULL
,
ds3
,
NULL
,
D3DTEXF_POINT
);
ok
(
hr
==
D3DERR_INVALIDCALL
,
"StretchRect returned %#x, expected %#x.
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
hr
=
IDirect3DDevice9_SetDepthStencilSurface
(
device
,
ds1
);
ok
(
SUCCEEDED
(
hr
),
"SetDepthStencilSurface failed, hr %#x.
\n
"
,
hr
);
...
...
@@ -11322,6 +11329,7 @@ static void depth_blit_test(IDirect3DDevice9 *device)
ok
(
SUCCEEDED
(
hr
),
"Clear failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_StretchRect
(
device
,
ds2
,
NULL
,
ds1
,
NULL
,
D3DTEXF_POINT
);
ok
(
SUCCEEDED
(
hr
),
"StretchRect failed, hr %#x.
\n
"
,
hr
);
IDirect3DSurface9_Release
(
ds3
);
IDirect3DSurface9_Release
(
ds2
);
IDirect3DSurface9_Release
(
ds1
);
...
...
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