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

better comment
parent d47ce88b
No related branches found
No related tags found
No related merge requests found
// $Id: Draw.cpp,v 1.44 2003-03-28 16:50:43 geuzaine Exp $ // $Id: Draw.cpp,v 1.45 2003-03-28 18:24:58 geuzaine Exp $
// //
// Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997-2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -141,8 +141,9 @@ void Orthogonalize(int x, int y) ...@@ -141,8 +141,9 @@ void Orthogonalize(int x, int y)
// applications (I guess they normalize the scene to fit in a 1x1x1 // applications (I guess they normalize the scene to fit in a 1x1x1
// box or something...). Here, we set up a large box around the // box or something...). Here, we set up a large box around the
// object, so that if we zoom a lot the resolution of the depth // object, so that if we zoom a lot the resolution of the depth
// buffer might become insufficient (at least with Mesa on Linux; on // buffer might become insufficient (at least with the "software"
// WinXP everyhting seems to be fine). // Mesa on Linux; with hardware acceleration or on Windows
// everyhting seems to be fine).
if(CTX.ortho) { if(CTX.ortho) {
double maxz = MAX(fabs(CTX.min[2]), fabs(CTX.max[2])); double maxz = MAX(fabs(CTX.min[2]), fabs(CTX.max[2]));
if(maxz < CTX.lc) maxz = CTX.lc; if(maxz < CTX.lc) maxz = CTX.lc;
...@@ -160,7 +161,6 @@ void Orthogonalize(int x, int y) ...@@ -160,7 +161,6 @@ void Orthogonalize(int x, int y)
glScaled(10., 10., 10.); glScaled(10., 10., 10.);
} }
} }
// Init // Init
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment