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
9427d1d5
Commit
9427d1d5
authored
Aug 28, 2015
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Properly clean up in test_texcoordindex.
parent
f805fb11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
ddraw4.c
dlls/ddraw/tests/ddraw4.c
+8
-4
No files found.
dlls/ddraw/tests/ddraw4.c
View file @
9427d1d5
...
...
@@ -9415,7 +9415,7 @@ static void test_texcoordindex(void)
}
hr
=
IDirect3DDevice3_GetDirect3D
(
device
,
&
d3d
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get Direct3D
7
interface, hr %#x.
\n
"
,
hr
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get Direct3D
3
interface, hr %#x.
\n
"
,
hr
);
hr
=
IDirect3D3_QueryInterface
(
d3d
,
&
IID_IDirectDraw4
,
(
void
**
)
&
ddraw
);
ok
(
SUCCEEDED
(
hr
),
"Failed to get DirectDraw4 interface, hr %#x.
\n
"
,
hr
);
IDirect3D3_Release
(
d3d
);
...
...
@@ -9545,10 +9545,14 @@ static void test_texcoordindex(void)
color
=
get_surface_color
(
rt
,
480
,
360
);
ok
(
compare_color
(
color
,
0x00ffff00
,
2
),
"Got unexpected color 0x%08x.
\n
"
,
color
);
IDirectDrawSurface7_Release
(
texture1
);
IDirectDrawSurface7_Release
(
texture2
);
IDirect3DTexture2_Release
(
texture2
);
IDirect3DTexture2_Release
(
texture1
);
IDirectDrawSurface4_Release
(
surface2
);
IDirectDrawSurface4_Release
(
surface1
);
destroy_viewport
(
device
,
viewport
);
IDirectDrawSurface
7
_Release
(
rt
);
IDirectDrawSurface
4
_Release
(
rt
);
IDirectDraw_Release
(
ddraw
);
refcount
=
IDirect3DDevice3_Release
(
device
);
ok
(
!
refcount
,
"Device has %u references left.
\n
"
,
refcount
);
...
...
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