replace assertion with conditional
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Jul 2003 23:13:39 +0000 (23:13 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 30 Jul 2003 23:13:39 +0000 (23:13 +0000)
src/mesa/main/rastpos.c

index 77d84a50b68c80dcd17c9551b27ca0d1eecee264..8184a25b975b2e82878662b3d37fa7368bd25b9b 100644 (file)
@@ -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;