mesa: add missing breaks for GL_TEXTURE_CUBE_MAP_SEAMLESS queries
authorBrian Paul <brianp@vmware.com>
Fri, 29 Jul 2011 22:49:55 +0000 (16:49 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 29 Jul 2011 22:49:55 +0000 (16:49 -0600)
And fix indentation.

NOTE: This is a candidate for the 7.11 branch.

src/mesa/main/texparam.c

index 3f771f08bc6176f55fcf6fc48e20a61eea0531d4..134f15346e80e24312e86630a432b9744825e8a3 100644 (file)
@@ -1266,12 +1266,13 @@ _mesa_GetTexParameterfv( GLenum target, GLenum pname, GLfloat *params )
          break;
 
       case GL_TEXTURE_CUBE_MAP_SEAMLESS:
-      if (ctx->Extensions.AMD_seamless_cubemap_per_texture) {
-         *params = (GLfloat) obj->Sampler.CubeMapSeamless;
-      }
-      else {
-         error = GL_TRUE;
-      }
+         if (ctx->Extensions.AMD_seamless_cubemap_per_texture) {
+            *params = (GLfloat) obj->Sampler.CubeMapSeamless;
+         }
+         else {
+            error = GL_TRUE;
+         }
+         break;
 
       default:
         error = GL_TRUE;
@@ -1441,6 +1442,7 @@ _mesa_GetTexParameteriv( GLenum target, GLenum pname, GLint *params )
          else {
             error = GL_TRUE;
          }
+         break;
 
       default:
          ; /* silence warnings */