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
a6510b3f
Commit
a6510b3f
authored
Jun 17, 2012
by
Thomas Faber
Committed by
Alexandre Julliard
Jun 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use INFINITY.
parent
cb8af015
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
state.c
dlls/wined3d/state.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-2
No files found.
dlls/wined3d/state.c
View file @
a6510b3f
...
@@ -1049,7 +1049,7 @@ void state_fogstartend(struct wined3d_context *context, const struct wined3d_sta
...
@@ -1049,7 +1049,7 @@ void state_fogstartend(struct wined3d_context *context, const struct wined3d_sta
fogend
=
tmpvalue
.
f
;
fogend
=
tmpvalue
.
f
;
/* In GL, fogstart == fogend disables fog, in D3D everything's fogged.*/
/* In GL, fogstart == fogend disables fog, in D3D everything's fogged.*/
if
(
fogstart
==
fogend
)
{
if
(
fogstart
==
fogend
)
{
fogstart
=
-
1
.
0
f
/
0
.
0
f
;
fogstart
=
-
INFINITY
;
fogend
=
0
.
0
f
;
fogend
=
0
.
0
f
;
}
}
break
;
break
;
...
...
dlls/wined3d/wined3d_private.h
View file @
a6510b3f
...
@@ -199,7 +199,7 @@ static inline float float_16_to_32(const unsigned short *in) {
...
@@ -199,7 +199,7 @@ static inline float float_16_to_32(const unsigned short *in) {
}
else
if
(
e
<
31
)
{
}
else
if
(
e
<
31
)
{
return
sgn
*
powf
(
2
,
(
float
)
e
-
15
.
0
f
)
*
(
1
.
0
f
+
((
float
)
m
/
1024
.
0
f
));
return
sgn
*
powf
(
2
,
(
float
)
e
-
15
.
0
f
)
*
(
1
.
0
f
+
((
float
)
m
/
1024
.
0
f
));
}
else
{
}
else
{
if
(
m
==
0
)
return
sgn
/
0
.
0
f
;
/* +INF / -INF */
if
(
m
==
0
)
return
sgn
*
INFINITY
;
else
return
NAN
;
else
return
NAN
;
}
}
}
}
...
@@ -221,7 +221,7 @@ static inline float float_24_to_32(DWORD in)
...
@@ -221,7 +221,7 @@ static inline float float_24_to_32(DWORD in)
}
}
else
else
{
{
if
(
m
==
0
)
return
sgn
/
0
.
0
f
;
/* +INF / -INF */
if
(
m
==
0
)
return
sgn
*
INFINITY
;
else
return
NAN
;
else
return
NAN
;
}
}
}
}
...
...
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