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
e46d650d
Commit
e46d650d
authored
May 18, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
May 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dx9/tests: Mark broken behavior of the debug version of d3d9.
parent
8061bec3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
surface.c
dlls/d3dx9_36/tests/surface.c
+4
-2
No files found.
dlls/d3dx9_36/tests/surface.c
View file @
e46d650d
...
...
@@ -565,7 +565,8 @@ static void test_D3DXLoadSurface(IDirect3DDevice9 *device)
SetRect
(
&
destrect
,
0
,
0
,
0
,
0
);
/* left = right, top = bottom */
hr
=
D3DXLoadSurfaceFromMemory
(
surf
,
NULL
,
&
destrect
,
pixdata
,
D3DFMT_A8R8G8B8
,
sizeof
(
pixdata
),
NULL
,
&
rect
,
D3DX_FILTER_NONE
,
0
);
ok
(
hr
==
D3D_OK
,
"D3DXLoadSurfaceFromMemory returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
/* fails when debug version of d3d9 is used */
ok
(
hr
==
D3D_OK
||
broken
(
hr
==
D3DERR_INVALIDCALL
),
"D3DXLoadSurfaceFromMemory returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
SetRect
(
&
destrect
,
257
,
257
,
257
,
257
);
/* left = right, top = bottom, but invalid values */
hr
=
D3DXLoadSurfaceFromMemory
(
surf
,
NULL
,
&
destrect
,
pixdata
,
D3DFMT_A8R8G8B8
,
sizeof
(
pixdata
),
NULL
,
&
rect
,
D3DX_FILTER_NONE
,
0
);
...
...
@@ -996,7 +997,8 @@ next_tests:
ok
(
hr
==
D3DERR_INVALIDCALL
,
"D3DXSaveSurfaceToFileA returned %#x, expected %#x
\n
"
,
hr
,
D3DERR_INVALIDCALL
);
SetRect
(
&
rect
,
0
,
0
,
0
,
0
);
hr
=
D3DXSaveSurfaceToFileA
(
"saved_surface.bmp"
,
D3DXIFF_BMP
,
surface
,
NULL
,
&
rect
);
ok
(
hr
==
D3D_OK
,
"D3DXSaveSurfaceToFileA returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
/* fails when debug version of d3d9 is used */
ok
(
hr
==
D3D_OK
||
broken
(
hr
==
D3DERR_INVALIDCALL
),
"D3DXSaveSurfaceToFileA returned %#x, expected %#x
\n
"
,
hr
,
D3D_OK
);
DeleteFileA
(
"saved_surface.bmp"
);
DeleteFileA
(
"saved_surface.ppm"
);
...
...
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