projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f88d846
)
replace assertion with conditional
author
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 30 Jul 2003 23:13:39 +0000
(23:13 +0000)
committer
Brian Paul
<brian.paul@tungstengraphics.com>
Wed, 30 Jul 2003 23:13:39 +0000
(23:13 +0000)
src/mesa/main/rastpos.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/rastpos.c
b/src/mesa/main/rastpos.c
index 77d84a50b68c80dcd17c9551b27ca0d1eecee264..8184a25b975b2e82878662b3d37fa7368bd25b9b 100644
(file)
--- a/
src/mesa/main/rastpos.c
+++ b/
src/mesa/main/rastpos.c
@@
-379,8
+379,7
@@
raster_pos4f(GLcontext *ctx, GLfloat x, GLfloat y, GLfloat z, GLfloat w)
}
/* ndc = clip / W */
- ASSERT( clip[3]!=0.0 );
- d = 1.0F / clip[3];
+ d = (clip[3] == 0.0) ? 1.0 : 1.0F / clip[3];
ndc[0] = clip[0] * d;
ndc[1] = clip[1] * d;
ndc[2] = clip[2] * d;