Skip to content
Snippets Groups Projects
Commit 37ea1cf2 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 2da55f03
No related branches found
No related tags found
No related merge requests found
/* $Id: gl2ps.c,v 1.224 2006-02-14 14:51:43 geuzaine Exp $ */
/* $Id: gl2ps.c,v 1.225 2006-02-14 19:09:30 geuzaine Exp $ */
/*
* GL2PS, an OpenGL to PostScript Printing Library
* Copyright (C) 1999-2006 Christophe Geuzaine <geuz@geuz.org>
......@@ -1385,6 +1385,7 @@ static void gl2psRescaleAndOffset()
/* rescale z-buffer coordinate in [0,GL2PS_ZSCALE], to make it of
the same order of magnitude as the x and y coordinates */
scaleZ = GL2PS_ZERO(rangeZ) ? GL2PS_ZSCALE : (GL2PS_ZSCALE / rangeZ);
/* avoid precision loss (we use floats!) */
if(scaleZ > 100000.F) scaleZ = 100000.F;
/* apply offsets */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment