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
b2de4130
Commit
b2de4130
authored
Jun 17, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jun 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3drm: Fix initial specular value of the Material2 interface.
parent
d71bf7fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
material.c
dlls/d3drm/material.c
+4
-0
d3drm.c
dlls/d3drm/tests/d3drm.c
+1
-1
No files found.
dlls/d3drm/material.c
View file @
b2de4130
...
...
@@ -320,6 +320,10 @@ HRESULT Direct3DRMMaterial_create(IDirect3DRMMaterial2** ret_iface)
object
->
IDirect3DRMMaterial2_iface
.
lpVtbl
=
&
Direct3DRMMaterial2_Vtbl
;
object
->
ref
=
1
;
object
->
specular
.
r
=
1
.
0
f
;
object
->
specular
.
g
=
1
.
0
f
;
object
->
specular
.
b
=
1
.
0
f
;
*
ret_iface
=
&
object
->
IDirect3DRMMaterial2_iface
;
return
S_OK
;
...
...
dlls/d3drm/tests/d3drm.c
View file @
b2de4130
...
...
@@ -1006,7 +1006,7 @@ static void test_Material2(void)
hr
=
IDirect3DRMMaterial2_GetSpecular
(
pMaterial2
,
&
r
,
&
g
,
&
b
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get emissive (hr = %x)
\n
"
,
hr
);
todo_wine
ok
(
r
==
1
.
0
f
&&
g
==
1
.
0
f
&&
b
==
1
.
0
f
,
"wrong specular r=%f g=%f b=%f, expected r=1.0 g=1.0 b=1.0
\n
"
,
r
,
g
,
b
);
ok
(
r
==
1
.
0
f
&&
g
==
1
.
0
f
&&
b
==
1
.
0
f
,
"wrong specular r=%f g=%f b=%f, expected r=1.0 g=1.0 b=1.0
\n
"
,
r
,
g
,
b
);
hr
=
IDirect3DRMMaterial2_GetAmbient
(
pMaterial2
,
&
r
,
&
g
,
&
b
);
ok
(
hr
==
D3DRM_OK
,
"Cannot get emissive (hr = %x)
\n
"
,
hr
);
...
...
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