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
eb355ece
Commit
eb355ece
authored
Mar 14, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Mar 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Fix test failures on Windows 7.
parent
8c4f96d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
buffer.c
dlls/d3d9/tests/buffer.c
+9
-5
No files found.
dlls/d3d9/tests/buffer.c
View file @
eb355ece
...
...
@@ -78,7 +78,7 @@ static void lock_flag_test(IDirect3DDevice9 *device)
{
DWORD
flags
;
const
char
*
debug_string
;
HRESULT
result
;
HRESULT
win7_
result
;
}
test_data
[]
=
{
...
...
@@ -87,9 +87,9 @@ static void lock_flag_test(IDirect3DDevice9 *device)
{
D3DLOCK_NOOVERWRITE
,
"D3DLOCK_NOOVERWRITE"
,
D3D_OK
},
{
D3DLOCK_NOOVERWRITE
|
D3DLOCK_DISCARD
,
"D3DLOCK_NOOVERWRITE | D3DLOCK_DISCARD"
,
D3D_OK
},
{
D3DLOCK_NOOVERWRITE
|
D3DLOCK_READONLY
,
"D3DLOCK_NOOVERWRITE | D3DLOCK_READONLY"
,
D3D_OK
},
{
D3DLOCK_READONLY
|
D3DLOCK_DISCARD
,
"D3DLOCK_READONLY | D3DLOCK_DISCARD"
,
D3D
_OK
},
{
D3DLOCK_READONLY
|
D3DLOCK_DISCARD
,
"D3DLOCK_READONLY | D3DLOCK_DISCARD"
,
D3D
ERR_INVALIDCALL
},
/* Completely bogous flags aren't an error */
{
0xdeadbeef
,
"0xdeadbeef"
,
D3D
_OK
},
{
0xdeadbeef
,
"0xdeadbeef"
,
D3D
ERR_INVALIDCALL
},
};
hr
=
IDirect3DDevice9_CreateVertexBuffer
(
device
,
1024
,
D3DUSAGE_DYNAMIC
,
0
,
D3DPOOL_DEFAULT
,
&
buffer
,
NULL
);
...
...
@@ -98,8 +98,12 @@ static void lock_flag_test(IDirect3DDevice9 *device)
for
(
i
=
0
;
i
<
(
sizeof
(
test_data
)
/
sizeof
(
*
test_data
));
i
++
)
{
hr
=
IDirect3DVertexBuffer9_Lock
(
buffer
,
0
,
0
,
&
data
,
test_data
[
i
].
flags
);
ok
(
hr
==
test_data
[
i
].
result
,
"Lock flags %s returned 0x%08x, expected 0x%08x
\n
"
,
test_data
[
i
].
debug_string
,
hr
,
test_data
[
i
].
result
);
/* Windows XP always returns D3D_OK even with flags that don't make sense. Windows 7 returns
* an error. At least one game(Shaiya) depends on the Windows XP result, so mark the Windows 7
* behavior as broken()
*/
ok
(
hr
==
D3D_OK
||
broken
(
hr
==
test_data
[
i
].
win7_result
),
"Lock flags %s returned 0x%08x, expected D3D_OK
\n
"
,
test_data
[
i
].
debug_string
,
hr
);
if
(
SUCCEEDED
(
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