mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
replace assertion with conditional
This commit is contained in:
parent
f88d846255
commit
1a615070ed
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue