summaryrefslogtreecommitdiff
path: root/src/mesa/swrast/s_tritemp.h
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2001-07-14 16:05:44 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2001-07-14 16:05:44 +0000
commitac3958ea1bf8f7b1648f9c1b2ffbe93ffd40b602 (patch)
treef1cb315f2f0d36cded457712d7cd97940c9ee004 /src/mesa/swrast/s_tritemp.h
parentee6cf4c6b081dbad7366b80637718d068530d79c (diff)
removed unused tiny triangle test code
Diffstat (limited to 'src/mesa/swrast/s_tritemp.h')
-rw-r--r--src/mesa/swrast/s_tritemp.h30
1 files changed, 4 insertions, 26 deletions
diff --git a/src/mesa/swrast/s_tritemp.h b/src/mesa/swrast/s_tritemp.h
index 43a4b3485d..57c3c26c5b 100644
--- a/src/mesa/swrast/s_tritemp.h
+++ b/src/mesa/swrast/s_tritemp.h
@@ -1,4 +1,4 @@
-/* $Id: s_tritemp.h,v 1.20 2001/07/13 20:07:37 brianp Exp $ */
+/* $Id: s_tritemp.h,v 1.21 2001/07/14 16:05:44 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -94,8 +94,7 @@
GLfloat oneOverArea;
const SWvertex *vMin, *vMid, *vMax; /* Y(vMin)<=Y(vMid)<=Y(vMax) */
float bf = SWRAST_CONTEXT(ctx)->_backface_sign;
- GLboolean tiny;
- const GLint snapMask = ~((FIXED_ONE / 16) - 1); /* for x/y coord snapping */
+ const GLint snapMask = ~((FIXED_ONE / 16) - 1); /* for x/y coord snapping */
GLfixed vMin_fx, vMin_fy, vMid_fx, vMid_fy, vMax_fx, vMax_fy;
struct triangle_span span;
@@ -180,19 +179,7 @@
if (area == 0.0F)
return;
- /* This may not be needed anymore. Let's see if anyone reports a problem. */
-#if 0
- /* check for very tiny triangle */
- if (area * area < (0.001F * 0.001F)) { /* square to ensure positive value */
- oneOverArea = 1.0F / 0.001F; /* a close-enough value */
- tiny = GL_TRUE;
- }
- else
-#endif
- {
- oneOverArea = 1.0F / area;
- tiny = GL_FALSE;
- }
+ oneOverArea = 1.0F / area;
}
#ifndef DO_OCCLUSION_TEST
@@ -358,16 +345,7 @@
#endif
#ifdef INTERP_RGB
span.activeMask |= SPAN_RGBA;
- if (tiny) {
- /* This is kind of a hack to eliminate RGB color over/underflow
- * problems when rendering very tiny triangles. We're not doing
- * anything with alpha or specular color at this time.
- */
- drdx = drdy = 0.0; span.redStep = 0;
- dgdx = dgdy = 0.0; span.greenStep = 0;
- dbdx = dbdy = 0.0; span.blueStep = 0;
- }
- else {
+ {
GLfloat eMaj_dr, eBot_dr;
GLfloat eMaj_dg, eBot_dg;
GLfloat eMaj_db, eBot_db;