Fixed: ptex drawing functions were overridden with standard drawing
authorFelix Kuehling <fxkuehl@gmx.de>
Fri, 7 Jan 2005 10:55:13 +0000 (10:55 +0000)
committerFelix Kuehling <fxkuehl@gmx.de>
Fri, 7 Jan 2005 10:55:13 +0000 (10:55 +0000)
functions if ANY_RASTER_FLAGS|ANY_FALLBACK_FLAGS were set.

src/mesa/drivers/dri/savage/savagetris.c

index 26388d1149f3e81e233817150cd39bf6a985c2da..52da161d7e309bb43a76245bdb6d67ff6748a7c7 100644 (file)
@@ -712,13 +712,13 @@ static void savageChooseRenderState(GLcontext *ctx)
       imesa->draw_line = savage_ptex_line;
       imesa->draw_tri = savage_ptex_tri;
       index |= SAVAGE_FALLBACK_BIT;
-   }
-
-   if (flags & (ANY_RASTER_FLAGS|ANY_FALLBACK_FLAGS)) {
+   } else {
       imesa->draw_point = savage_draw_point;
       imesa->draw_line = savage_draw_line;
       imesa->draw_tri = savage_draw_triangle;
+   }
 
+   if (flags & (ANY_RASTER_FLAGS|ANY_FALLBACK_FLAGS)) {
       if (flags & ANY_RASTER_FLAGS) {
         if (flags & DD_TRI_LIGHT_TWOSIDE) index |= SAVAGE_TWOSIDE_BIT;
         if (flags & DD_TRI_OFFSET)        index |= SAVAGE_OFFSET_BIT;