Fix shadow geom code that was never executed
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 20 Jan 2011 12:08:34 +0000 (12:08 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Thu, 20 Jan 2011 12:08:34 +0000 (12:08 +0000)
(Even though I don't see any difference either way.)

git-svn-id: https://s.snth.net/svn/neverball/trunk@3445 78b8d119-cf0a-0410-b17c-f493084dd1d7

share/solid_gl.c

index 6dcab08..8515b26 100644 (file)
@@ -487,7 +487,7 @@ static void sol_shad_body(const struct s_file *fp,
 {
     int mi, li, gi;
 
-    if (fl & M_DECAL)
+    if (decal)
     {
         glEnable(GL_POLYGON_OFFSET_FILL);
         glPolygonOffset(-1.0f, -2.0f);
@@ -506,7 +506,7 @@ static void sol_shad_body(const struct s_file *fp,
     }
     glEnd();
 
-    if (fl & M_DECAL)
+    if (decal)
         glDisable(GL_POLYGON_OFFSET_FILL);
 }