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
357e7b75
Commit
357e7b75
authored
Mar 08, 2016
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 09, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use D3DCOLORTOGLFLOAT4 in drawStridedSlow().
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b3790bf8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
drawprim.c
dlls/wined3d/drawprim.c
+1
-6
No files found.
dlls/wined3d/drawprim.c
View file @
357e7b75
...
...
@@ -291,15 +291,10 @@ static void drawStridedSlow(const struct wined3d_device *device, struct wined3d_
if
(
num_untracked_materials
)
{
DWORD
diffuseColor
=
((
const
DWORD
*
)
ptrToCoords
)[
0
];
unsigned
char
i
;
float
color
[
4
];
color
[
0
]
=
D3DCOLOR_B_R
(
diffuseColor
)
/
255
.
0
f
;
color
[
1
]
=
D3DCOLOR_B_G
(
diffuseColor
)
/
255
.
0
f
;
color
[
2
]
=
D3DCOLOR_B_B
(
diffuseColor
)
/
255
.
0
f
;
color
[
3
]
=
D3DCOLOR_B_A
(
diffuseColor
)
/
255
.
0
f
;
D3DCOLORTOGLFLOAT4
(
*
(
const
DWORD
*
)
ptrToCoords
,
color
);
for
(
i
=
0
;
i
<
num_untracked_materials
;
++
i
)
{
gl_info
->
gl_ops
.
gl
.
p_glMaterialfv
(
GL_FRONT_AND_BACK
,
context
->
untracked_materials
[
i
],
color
);
...
...
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