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
969e7239
Commit
969e7239
authored
Apr 22, 2015
by
Matteo Bruni
Committed by
Alexandre Julliard
Apr 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Fix ddraw2 test_lighting() cleanup code.
parent
4b559f02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ddraw2.c
dlls/ddraw/tests/ddraw2.c
+3
-1
No files found.
dlls/ddraw/tests/ddraw2.c
View file @
969e7239
...
@@ -6639,6 +6639,8 @@ static void test_lighting(void)
...
@@ -6639,6 +6639,8 @@ static void test_lighting(void)
ok
(
color
==
tests
[
i
].
expected
,
"%s has color 0x%08x.
\n
"
,
tests
[
i
].
message
,
color
);
ok
(
color
==
tests
[
i
].
expected
,
"%s has color 0x%08x.
\n
"
,
tests
[
i
].
message
,
color
);
}
}
hr
=
IDirect3DViewport2_DeleteLight
(
viewport
,
light
);
ok
(
SUCCEEDED
(
hr
),
"Failed to remove a light from the viewport, hr %#x.
\n
"
,
hr
);
IDirect3DLight_Release
(
light
);
IDirect3DLight_Release
(
light
);
destroy_material
(
material
);
destroy_material
(
material
);
destroy_viewport
(
device
,
viewport
);
destroy_viewport
(
device
,
viewport
);
...
@@ -6646,7 +6648,7 @@ static void test_lighting(void)
...
@@ -6646,7 +6648,7 @@ static void test_lighting(void)
refcount
=
IDirect3DDevice2_Release
(
device
);
refcount
=
IDirect3DDevice2_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
IDirect3D2_Release
(
d3d
);
IDirect3D2_Release
(
d3d
);
IDirectDraw2_Release
(
ddraw
);
refcount
=
IDirectDraw2_Release
(
ddraw
);
ok
(
!
refcount
,
"Ddraw object has %u references left.
\n
"
,
refcount
);
ok
(
!
refcount
,
"Ddraw object has %u references left.
\n
"
,
refcount
);
DestroyWindow
(
window
);
DestroyWindow
(
window
);
}
}
...
...
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