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
49da5031
Commit
49da5031
authored
Jan 05, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Jan 05, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d8/tests: Fix a test failure on VMware and VirtualBox.
parent
80d4d54c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
stateblock.c
dlls/d3d8/tests/stateblock.c
+9
-2
No files found.
dlls/d3d8/tests/stateblock.c
View file @
49da5031
...
@@ -61,7 +61,8 @@ static HRESULT init_d3d8(HMODULE d3d8_module, IDirect3DDevice8 **device, D3DPRES
...
@@ -61,7 +61,8 @@ static HRESULT init_d3d8(HMODULE d3d8_module, IDirect3DDevice8 **device, D3DPRES
hr
=
IDirect3D8_CreateDevice
(
d3d8
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
window
,
hr
=
IDirect3D8_CreateDevice
(
d3d8
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
window
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
device_pparams
,
device
);
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
device_pparams
,
device
);
ok
(
SUCCEEDED
(
hr
)
||
hr
==
D3DERR_NOTAVAILABLE
,
"IDirect3D8_CreateDevice failed, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
)
||
hr
==
D3DERR_NOTAVAILABLE
||
broken
(
hr
==
D3DERR_INVALIDCALL
),
"IDirect3D8_CreateDevice failed, hr %#x.
\n
"
,
hr
);
return
hr
;
return
hr
;
}
}
...
@@ -1540,7 +1541,11 @@ START_TEST(stateblock)
...
@@ -1540,7 +1541,11 @@ START_TEST(stateblock)
}
}
hr
=
init_d3d8
(
d3d8_module
,
&
device
,
&
device_pparams
);
hr
=
init_d3d8
(
d3d8_module
,
&
device
,
&
device_pparams
);
if
(
FAILED
(
hr
))
return
;
if
(
FAILED
(
hr
))
{
FreeLibrary
(
d3d8_module
);
return
;
}
test_begin_end_state_block
(
device
);
test_begin_end_state_block
(
device
);
test_state_management
(
device
,
&
device_pparams
);
test_state_management
(
device
,
&
device_pparams
);
...
@@ -1548,4 +1553,6 @@ START_TEST(stateblock)
...
@@ -1548,4 +1553,6 @@ START_TEST(stateblock)
refcount
=
IDirect3DDevice8_Release
(
device
);
refcount
=
IDirect3DDevice8_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left
\n
"
,
refcount
);
ok
(
!
refcount
,
"Device has %u references left
\n
"
,
refcount
);
FreeLibrary
(
d3d8_module
);
}
}
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