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
1ce059d6
Commit
1ce059d6
authored
Apr 16, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 16, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm/tests: Avoid LPDIRECT3DRM3.
parent
5e3b4c87
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
d3drm.c
dlls/d3drm/tests/d3drm.c
+8
-8
No files found.
dlls/d3drm/tests/d3drm.c
View file @
1ce059d6
...
...
@@ -527,7 +527,7 @@ static void test_MeshBuilder3(void)
{
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
LPDIRECT3DRM3
pD3DRM
3
;
IDirect3DRM3
*
d3drm
3
;
LPDIRECT3DRMMESHBUILDER3
pMeshBuilder3
;
D3DRMLOADMEMORY
info
;
int
val
;
...
...
@@ -539,14 +539,14 @@ static void test_MeshBuilder3(void)
hr
=
pDirect3DRMCreate
(
&
d3drm
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRM interface (hr = %x)
\n
"
,
hr
);
if
(
FAILED
(
hr
=
IDirect3DRM_QueryInterface
(
d3drm
,
&
IID_IDirect3DRM3
,
(
void
**
)
&
pD3DRM
3
)))
if
(
FAILED
(
hr
=
IDirect3DRM_QueryInterface
(
d3drm
,
&
IID_IDirect3DRM3
,
(
void
**
)
&
d3drm
3
)))
{
win_skip
(
"Cannot get IDirect3DRM3 interface (hr = %x), skipping tests
\n
"
,
hr
);
IDirect3DRM_Release
(
d3drm
);
return
;
}
hr
=
IDirect3DRM3_CreateMeshBuilder
(
pD3DRM
3
,
&
pMeshBuilder3
);
hr
=
IDirect3DRM3_CreateMeshBuilder
(
d3drm
3
,
&
pMeshBuilder3
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMMeshBuilder3 interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMMeshBuilder3_GetClassName
(
pMeshBuilder3
,
NULL
,
cname
);
...
...
@@ -630,7 +630,7 @@ static void test_MeshBuilder3(void)
ok
(
valv
==
3
.
21
f
,
"Wrong coordinate %f (must be 3.21)
\n
"
,
valv
);
IDirect3DRMMeshBuilder3_Release
(
pMeshBuilder3
);
IDirect3DRM3_Release
(
pD3DRM
3
);
IDirect3DRM3_Release
(
d3drm
3
);
IDirect3DRM_Release
(
d3drm
);
}
...
...
@@ -1118,7 +1118,7 @@ static void test_Material2(void)
{
HRESULT
hr
;
IDirect3DRM
*
d3drm
;
LPDIRECT3DRM3
pD3DRM
3
;
IDirect3DRM3
*
d3drm
3
;
LPDIRECT3DRMMATERIAL2
pMaterial2
;
D3DVALUE
r
,
g
,
b
;
DWORD
size
;
...
...
@@ -1127,14 +1127,14 @@ static void test_Material2(void)
hr
=
pDirect3DRMCreate
(
&
d3drm
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRM interface (hr = %x)
\n
"
,
hr
);
if
(
FAILED
(
hr
=
IDirect3DRM_QueryInterface
(
d3drm
,
&
IID_IDirect3DRM3
,
(
void
**
)
&
pD3DRM
3
)))
if
(
FAILED
(
hr
=
IDirect3DRM_QueryInterface
(
d3drm
,
&
IID_IDirect3DRM3
,
(
void
**
)
&
d3drm
3
)))
{
win_skip
(
"Cannot get IDirect3DRM3 interface (hr = %x), skipping tests
\n
"
,
hr
);
IDirect3DRM_Release
(
d3drm
);
return
;
}
hr
=
IDirect3DRM3_CreateMaterial
(
pD3DRM
3
,
18
.
5
f
,
&
pMaterial2
);
hr
=
IDirect3DRM3_CreateMaterial
(
d3drm
3
,
18
.
5
f
,
&
pMaterial2
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get IDirect3DRMMaterial2 interface (hr = %x)
\n
"
,
hr
);
hr
=
IDirect3DRMMaterial2_GetClassName
(
pMaterial2
,
NULL
,
cname
);
...
...
@@ -1190,7 +1190,7 @@ static void test_Material2(void)
IDirect3DRMMaterial2_Release
(
pMaterial2
);
IDirect3DRM3_Release
(
pD3DRM
3
);
IDirect3DRM3_Release
(
d3drm
3
);
IDirect3DRM_Release
(
d3drm
);
}
...
...
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