Mesa (master): mesa: add missing breaks for GL_TEXTURE_CUBE_MAP_SEAMLESS queries

Brian Paul brianp at kemper.freedesktop.org
Fri Jul 29 22:50:29 UTC 2011


Module: Mesa
Branch: master
Commit: dc1f32deae1ab7366792fe5c7d654e02757985c0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=dc1f32deae1ab7366792fe5c7d654e02757985c0

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Jul 29 16:49:55 2011 -0600

mesa: add missing breaks for GL_TEXTURE_CUBE_MAP_SEAMLESS queries

And fix indentation.

NOTE: This is a candidate for the 7.11 branch.

---

 src/mesa/main/texparam.c |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index 3f771f0..134f153 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -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 */




More information about the mesa-commit mailing list