diff options
author | Brian Paul <brian.paul@tungstengraphics.com> | 2001-05-01 14:56:00 +0000 |
---|---|---|
committer | Brian Paul <brian.paul@tungstengraphics.com> | 2001-05-01 14:56:00 +0000 |
commit | 7448e33768b5052530138cd5b893245f7361662b (patch) | |
tree | 088979866f5c8752143702812429c3b8de9a5405 /src/glu/sgi/libnurbs | |
parent | 5b976943ee1a5449e5f73d2a44ac3053b92c75d8 (diff) |
applied Diego Santa Cruz's patch to triangulateRectCenter()
Diffstat (limited to 'src/glu/sgi/libnurbs')
-rw-r--r-- | src/glu/sgi/libnurbs/internals/slicer.cc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/glu/sgi/libnurbs/internals/slicer.cc b/src/glu/sgi/libnurbs/internals/slicer.cc index 42dba0238e..70dd550972 100644 --- a/src/glu/sgi/libnurbs/internals/slicer.cc +++ b/src/glu/sgi/libnurbs/internals/slicer.cc @@ -35,8 +35,8 @@ /* * slicer.c++ * - * $Date: 2001/03/17 00:25:41 $ $Revision: 1.1 $ - * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/slicer.cc,v 1.1 2001/03/17 00:25:41 brianp Exp $ + * $Date: 2001/05/01 14:56:00 $ $Revision: 1.2 $ + * $Header: /home/krh/git/sync/mesa-cvs-repo/Mesa/src/glu/sgi/libnurbs/internals/slicer.cc,v 1.2 2001/05/01 14:56:00 brianp Exp $ */ #include <stdlib.h> @@ -575,11 +575,14 @@ static void triangulateRectCenter(int n_ulines, REAL* u_val, TrimVertex trimVert; trimVert.nuid = 0;//???? - backend.surfgrid(u_val[0], u_val[n_ulines-1], n_ulines-1, - v_val[n_vlines-1], v_val[0], n_vlines-1); - - if(n_ulines>1 && n_vlines>1) + // XXX this code was patched by Diego Santa Cruz <Diego.SantaCruz@epfl.ch> + // to fix a problem in which glMapGrid2f() was called with bad parameters. + // This has beens submitted to SGI but not integrated as of May 1, 2001. + if(n_ulines>1 && n_vlines>1) { + backend.surfgrid(u_val[0], u_val[n_ulines-1], n_ulines-1, + v_val[n_vlines-1], v_val[0], n_vlines-1); backend.surfmesh(0,0,n_ulines-1,n_vlines-1); + } return; |