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
b63728a8
Commit
b63728a8
authored
Feb 19, 2009
by
Paul Vriens
Committed by
Alexandre Julliard
Feb 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Don't crash on W2K.
parent
166db1e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
visual.c
dlls/ddraw/tests/visual.c
+5
-1
No files found.
dlls/ddraw/tests/visual.c
View file @
b63728a8
...
...
@@ -37,6 +37,8 @@ IDirect3DDevice *Direct3DDevice1 = NULL;
IDirect3DExecuteBuffer
*
ExecuteBuffer
=
NULL
;
IDirect3DViewport
*
Viewport
=
NULL
;
static
BOOL
refdevice
=
FALSE
;
static
HRESULT
(
WINAPI
*
pDirectDrawCreateEx
)(
LPGUID
,
LPVOID
*
,
REFIID
,
LPUNKNOWN
);
static
BOOL
createObjects
(
void
)
...
...
@@ -100,6 +102,8 @@ static BOOL createObjects(void)
{
trace
(
"Creating a HAL device failed, trying Ref
\n
"
);
hr
=
IDirect3D7_CreateDevice
(
Direct3D
,
&
IID_IDirect3DRefDevice
,
Surface
,
&
Direct3DDevice
);
if
(
SUCCEEDED
(
hr
))
refdevice
=
TRUE
;
}
}
if
(
!
Direct3DDevice
)
goto
err
;
...
...
@@ -562,7 +566,7 @@ static void offscreen_test(IDirect3DDevice7 *device)
hr
=
IDirect3DDevice7_SetRenderState
(
device
,
D3DRENDERSTATE_LIGHTING
,
FALSE
);
ok
(
hr
==
D3D_OK
,
"IDirect3DDevice7_SetRenderState returned hr = %08x
\n
"
,
hr
);
if
(
IDirect3DDevice7_BeginScene
(
device
)
==
D3D_OK
)
{
if
(
IDirect3DDevice7_BeginScene
(
device
)
==
D3D_OK
&&
!
refdevice
)
{
hr
=
IDirect3DDevice7_SetRenderTarget
(
device
,
offscreen
,
0
);
ok
(
hr
==
D3D_OK
,
"SetRenderTarget failed, hr = %08x
\n
"
,
hr
);
hr
=
IDirect3DDevice7_Clear
(
device
,
0
,
NULL
,
D3DCLEAR_TARGET
,
0xffff00ff
,
0
.
0
,
0
);
...
...
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