Reenable, but only in the size four case...
authorKeith Whitwell <keith@tungstengraphics.com>
Tue, 14 Aug 2001 00:59:08 +0000 (00:59 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Tue, 14 Aug 2001 00:59:08 +0000 (00:59 +0000)
src/mesa/tnl/t_imm_eval.c

index f70f94aae6bc8acd533d4d89f8f2d67f0bbd052c..c25b03725afd790e69faa5e5d5c6e6c56f66364e 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: t_imm_eval.c,v 1.16 2001/08/14 00:52:47 keithw Exp $ */
+/* $Id: t_imm_eval.c,v 1.17 2001/08/14 00:59:08 keithw Exp $ */
 
 /*
  * Mesa 3-D graphics library
@@ -206,13 +206,15 @@ static void eval2_obj_norm( GLvector4f *obj_ptr,
         _math_de_casteljau_surf(map->Points, obj[i], du, dv, u, v, dimension,
                                 map->Uorder, map->Vorder);
 
-/*      du[0] = du[0]*obj[i][3] - du[3]*obj[i][0]; */
-/*      du[1] = du[1]*obj[i][3] - du[3]*obj[i][1]; */
-/*      du[2] = du[2]*obj[i][3] - du[3]*obj[i][2]; */
+        if (dimension == 4) {
+           du[0] = du[0]*obj[i][3] - du[3]*obj[i][0];
+           du[1] = du[1]*obj[i][3] - du[3]*obj[i][1];
+           du[2] = du[2]*obj[i][3] - du[3]*obj[i][2];
         
-/*      dv[0] = dv[0]*obj[i][3] - dv[3]*obj[i][0]; */
-/*      dv[1] = dv[1]*obj[i][3] - dv[3]*obj[i][1]; */
-/*      dv[2] = dv[2]*obj[i][3] - dv[3]*obj[i][2]; */
+           dv[0] = dv[0]*obj[i][3] - dv[3]*obj[i][0];
+           dv[1] = dv[1]*obj[i][3] - dv[3]*obj[i][1];
+           dv[2] = dv[2]*obj[i][3] - dv[3]*obj[i][2];
+        }
 
         CROSS3(normal[i], du, dv);
         NORMALIZE_3FV(normal[i]);