replace assertion with conditional

This commit is contained in:
Brian Paul 2003-07-30 23:13:39 +00:00
parent f88d846255
commit 1a615070ed

View 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;