r300: remove unnecessary switch cases
authorMaciej Cencora <m.cencora@gmail.com>
Wed, 13 May 2009 20:28:39 +0000 (22:28 +0200)
committerAlex Deucher <alexdeucher@gmail.com>
Sat, 16 May 2009 15:42:02 +0000 (11:42 -0400)
src/mesa/drivers/dri/r300/r300_state.c

index 873ac4aaec6993e77b437a90468f3b9f11ccec08..c0e3dbe9949cd61d6f3505162338cbe2b66b9e3d 100644 (file)
@@ -1917,14 +1917,6 @@ static void r300Enable(GLcontext * ctx, GLenum cap, GLboolean state)
                        state ? "GL_TRUE" : "GL_FALSE");
 
        switch (cap) {
-       case GL_TEXTURE_1D:
-       case GL_TEXTURE_2D:
-       case GL_TEXTURE_3D:
-               /* empty */
-               break;
-       case GL_FOG:
-               /* empty */
-               break;
        case GL_ALPHA_TEST:
                r300SetAlphaState(ctx);
                break;