diff options
author | Brian Paul <[email protected]> | 2003-07-30 23:13:39 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2003-07-30 23:13:39 +0000 |
commit | 1a615070ed959359c949aecc3b52a199b999b2a5 (patch) | |
tree | c4d50b3ee282757472b7c1d2a57645d867256277 | |
parent | f88d84625594cfb6fc7b77462417824cf33a8585 (diff) |
replace assertion with conditional
-rw-r--r-- | src/mesa/main/rastpos.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/rastpos.c b/src/mesa/main/rastpos.c index 77d84a50b68..8184a25b975 100644 --- 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; |