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
612801d3
Commit
612801d3
authored
Jul 29, 2010
by
Stefan Dösinger
Committed by
Alexandre Julliard
Aug 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use float functions in drawprim.c.
parent
1d710bb4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drawprim.c
dlls/wined3d/drawprim.c
+4
-4
No files found.
dlls/wined3d/drawprim.c
View file @
612801d3
...
...
@@ -743,7 +743,7 @@ void drawPrimitive(IWineD3DDevice *iface, UINT index_count, UINT StartIdx, UINT
static
void
normalize_normal
(
float
*
n
)
{
float
length
=
n
[
0
]
*
n
[
0
]
+
n
[
1
]
*
n
[
1
]
+
n
[
2
]
*
n
[
2
];
if
(
length
==
0
.
0
f
)
return
;
length
=
sqrt
(
length
);
length
=
sqrt
f
(
length
);
n
[
0
]
=
n
[
0
]
/
length
;
n
[
1
]
=
n
[
1
]
/
length
;
n
[
2
]
=
n
[
2
]
/
length
;
...
...
@@ -828,9 +828,9 @@ HRESULT tesselate_rectpatch(IWineD3DDeviceImpl *This,
for
(
j
=
0
;
j
<
info
->
Height
;
j
++
)
{
for
(
i
=
0
;
i
<
info
->
Width
;
i
++
)
{
const
float
*
v
=
(
const
float
*
)(
data
+
vtxStride
*
i
+
vtxStride
*
info
->
Stride
*
j
);
if
(
fabs
(
v
[
0
])
>
max_x
)
max_x
=
fabs
(
v
[
0
]);
if
(
fabs
(
v
[
1
])
>
max_y
)
max_y
=
fabs
(
v
[
1
]);
if
(
fabs
(
v
[
2
])
>
max_z
)
max_z
=
fabs
(
v
[
2
]);
if
(
fabs
(
v
[
0
])
>
max_x
)
max_x
=
fabs
f
(
v
[
0
]);
if
(
fabs
(
v
[
1
])
>
max_y
)
max_y
=
fabs
f
(
v
[
1
]);
if
(
fabs
(
v
[
2
])
>
max_z
)
max_z
=
fabs
f
(
v
[
2
]);
if
(
v
[
2
]
<
neg_z
)
neg_z
=
v
[
2
];
}
}
...
...
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