Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
87bf9c99
Commit
87bf9c99
authored
May 16, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 19, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Avoid invalid framebuffer configrations in resz_test.
parent
a96b0473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
visual.c
dlls/d3d9/tests/visual.c
+8
-5
No files found.
dlls/d3d9/tests/visual.c
View file @
87bf9c99
...
@@ -15544,6 +15544,8 @@ static void resz_test(void)
...
@@ -15544,6 +15544,8 @@ static void resz_test(void)
hr
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
original_rt
);
hr
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
original_rt
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render target, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render target, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetDepthStencilSurface
(
device
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set depth/stencil, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetPixelShader
(
device
,
ps
);
hr
=
IDirect3DDevice9_SetPixelShader
(
device
,
ps
);
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed, hr %#x.
\n
"
,
hr
);
...
@@ -15564,10 +15566,6 @@ static void resz_test(void)
...
@@ -15564,10 +15566,6 @@ static void resz_test(void)
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
hr
=
IDirect3DDevice9_Present
(
device
,
NULL
,
NULL
,
NULL
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Present failed (0x%08x)
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Present failed (0x%08x)
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
original_rt
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render target, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetDepthStencilSurface
(
device
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set depth/stencil, hr %#x.
\n
"
,
hr
);
IDirect3DSurface9_Release
(
ds
);
IDirect3DSurface9_Release
(
ds
);
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"SetTexture failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"SetTexture failed, hr %#x.
\n
"
,
hr
);
...
@@ -15580,7 +15578,6 @@ static void resz_test(void)
...
@@ -15580,7 +15578,6 @@ static void resz_test(void)
IDirect3DSurface9_Release
(
rt
);
IDirect3DSurface9_Release
(
rt
);
cleanup_device
(
device
);
cleanup_device
(
device
);
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
ZeroMemory
(
&
present_parameters
,
sizeof
(
present_parameters
));
present_parameters
.
Windowed
=
TRUE
;
present_parameters
.
Windowed
=
TRUE
;
present_parameters
.
hDeviceWindow
=
create_window
();
present_parameters
.
hDeviceWindow
=
create_window
();
...
@@ -15682,6 +15679,8 @@ static void resz_test(void)
...
@@ -15682,6 +15679,8 @@ static void resz_test(void)
hr
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
readback
);
hr
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
readback
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render target, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set render target, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetDepthStencilSurface
(
device
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set depth/stencil, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetPixelShader
(
device
,
ps
);
hr
=
IDirect3DDevice9_SetPixelShader
(
device
,
ps
);
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed, hr %#x.
\n
"
,
hr
);
...
@@ -15710,6 +15709,10 @@ static void resz_test(void)
...
@@ -15710,6 +15709,10 @@ static void resz_test(void)
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"SetPixelShader failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
hr
=
IDirect3DDevice9_SetTexture
(
device
,
0
,
NULL
);
ok
(
SUCCEEDED
(
hr
),
"SetTexture failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"SetTexture failed, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetDepthStencilSurface
(
device
,
ds
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set depth/stencil, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_SetRenderTarget
(
device
,
0
,
original_rt
);
ok
(
SUCCEEDED
(
hr
),
"Failed to set depth/stencil, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3DDevice9_BeginScene
(
device
);
hr
=
IDirect3DDevice9_BeginScene
(
device
);
ok
(
SUCCEEDED
(
hr
),
"BeginScene failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"BeginScene failed, hr %#x.
\n
"
,
hr
);
...
...
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