Bugzilla #2708: Disable the fallback on GL_SPHERE_MAP. It appears to hurt more
authorEric Anholt <anholt@FreeBSD.org>
Tue, 31 May 2005 23:32:47 +0000 (23:32 +0000)
committerEric Anholt <anholt@FreeBSD.org>
Tue, 31 May 2005 23:32:47 +0000 (23:32 +0000)
than it helps, and we seem to have a handle on how to fix it.

src/mesa/drivers/dri/r200/r200_texstate.c

index 3fba25d0b5086ed4fdda82a24d57461a1e0003c9..4a6b285a585f2e59629a07f8e5e20fa8e2564b6e 100644 (file)
@@ -1016,8 +1016,7 @@ static GLboolean r200_validate_texgen( GLcontext *ctx, GLuint unit )
    case GL_SPHERE_MAP:
       rmesa->TexGenNeedNormals[unit] = GL_TRUE;
       tgi |= R200_TEXGEN_INPUT_SPHERE<<inputshift;
-      /* GL_SPHERE_MAP doesn't appear to work. */
-      return GL_FALSE;
+      break;
 
    case 0:
       /* All texgen units were disabled, so just pass coords through. */