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
c1cc17d8
Commit
c1cc17d8
authored
Dec 31, 2006
by
Louis Lenders
Committed by
Alexandre Julliard
Jan 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9: Fix failing tests on windows, when no 3d hardware acceleration is available.
parent
d46d7d13
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
7 deletions
+36
-7
device.c
dlls/d3d9/tests/device.c
+6
-2
shader.c
dlls/d3d9/tests/shader.c
+6
-1
surface.c
dlls/d3d9/tests/surface.c
+6
-1
texture.c
dlls/d3d9/tests/texture.c
+6
-1
vertexdeclaration.c
dlls/d3d9/tests/vertexdeclaration.c
+6
-1
volume.c
dlls/d3d9/tests/volume.c
+6
-1
No files found.
dlls/d3d9/tests/device.c
View file @
c1cc17d8
...
...
@@ -735,8 +735,12 @@ static void test_reset(void)
hr
=
IDirect3D9_CreateDevice
(
pD3d
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
/* no NULLREF here */
,
hwnd
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
d3dpp
,
&
pDevice
);
ok
(
SUCCEEDED
(
hr
),
"Failed to create IDirect3D9Device (%s)
\n
"
,
DXGetErrorString9
(
hr
));
if
(
FAILED
(
hr
))
goto
cleanup
;
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D9_CreateDevice returned %#x
\n
"
,
hr
);
goto
cleanup
;
}
width
=
GetSystemMetrics
(
SM_CXSCREEN
);
height
=
GetSystemMetrics
(
SM_CYSCREEN
);
...
...
dlls/d3d9/tests/shader.c
View file @
c1cc17d8
...
...
@@ -55,7 +55,12 @@ static IDirect3DDevice9 *init_d3d9(void)
present_parameters
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
hres
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
hres
==
D3D_OK
,
"IDirect3D_CreateDevice returned: 0x%x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
{
trace
(
"could not create device, IDirect3D9_CreateDevice returned %#x
\n
"
,
hres
);
return
NULL
;
}
return
device_ptr
;
}
...
...
dlls/d3d9/tests/surface.c
View file @
c1cc17d8
...
...
@@ -54,7 +54,12 @@ static IDirect3DDevice9 *init_d3d9(HMODULE d3d9_handle)
hr
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3D_CreateDevice returned %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D9_CreateDevice returned %#x
\n
"
,
hr
);
return
NULL
;
}
return
device_ptr
;
}
...
...
dlls/d3d9/tests/texture.c
View file @
c1cc17d8
...
...
@@ -53,7 +53,12 @@ static IDirect3DDevice9 *init_d3d9(HMODULE d3d9_handle)
hr
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3D_CreateDevice returned %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D9_CreateDevice returned %#x
\n
"
,
hr
);
return
NULL
;
}
return
device_ptr
;
}
...
...
dlls/d3d9/tests/vertexdeclaration.c
View file @
c1cc17d8
...
...
@@ -60,7 +60,12 @@ static IDirect3DDevice9 *init_d3d9(void)
present_parameters
.
SwapEffect
=
D3DSWAPEFFECT_DISCARD
;
hres
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
hres
==
D3D_OK
,
"IDirect3D_CreateDevice returned: 0x%x
\n
"
,
hres
);
if
(
FAILED
(
hres
))
{
trace
(
"could not create device, IDirect3D9_CreateDevice returned %#x
\n
"
,
hres
);
return
NULL
;
}
return
device_ptr
;
}
...
...
dlls/d3d9/tests/volume.c
View file @
c1cc17d8
...
...
@@ -53,7 +53,12 @@ static IDirect3DDevice9 *init_d3d9(HMODULE d3d9_handle)
hr
=
IDirect3D9_CreateDevice
(
d3d9_ptr
,
D3DADAPTER_DEFAULT
,
D3DDEVTYPE_HAL
,
NULL
,
D3DCREATE_SOFTWARE_VERTEXPROCESSING
,
&
present_parameters
,
&
device_ptr
);
ok
(
SUCCEEDED
(
hr
),
"IDirect3D_CreateDevice returned %#x
\n
"
,
hr
);
if
(
FAILED
(
hr
))
{
trace
(
"could not create device, IDirect3D9_CreateDevice returned %#x
\n
"
,
hr
);
return
NULL
;
}
return
device_ptr
;
}
...
...
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