mesa: disable unreachable meta mipmap gen code
authorBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 15:13:55 +0000 (08:13 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 24 Feb 2010 15:14:33 +0000 (08:14 -0700)
More work is needed to support 3D mipmap generation.  Disable unreachable
code until then.

See bug 26722.

src/mesa/drivers/common/meta.c

index 42ab7d4ed60851dcd996a09d5d1626543b3cf47a..8e229bbe388848662c50a858a422abda4bdbf31a 100644 (file)
@@ -2131,12 +2131,15 @@ _mesa_meta_check_generate_mipmap_fallback(GLcontext *ctx, GLenum target,
                                     GL_COLOR_ATTACHMENT0_EXT,
                                     target, texObj->Name, srcLevel);
    }
+#if 0
+   /* other work is needed to enable 3D mipmap generation */
    else if (target == GL_TEXTURE_3D) {
       GLint zoffset = 0;
       _mesa_FramebufferTexture3DEXT(GL_FRAMEBUFFER_EXT,
                                     GL_COLOR_ATTACHMENT0_EXT,
                                     target, texObj->Name, srcLevel, zoffset);
    }
+#endif
    else {
       /* 2D / cube */
       _mesa_FramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,