summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2011-07-29 16:49:55 -0600
committerMarek Olšák <maraeo@gmail.com>2011-10-02 16:53:57 +0200
commit4bd0f04531990c895bce8157648513ce1802b891 (patch)
treeff034d4f4b75b95322c34fc32409c96c43cf59de
parent45716cffbeb48e4be4506fc97f312977b5d2a567 (diff)
mesa: add missing breaks for GL_TEXTURE_CUBE_MAP_SEAMLESS queries
And fix indentation. NOTE: This is a candidate for the 7.11 branch. (cherry picked from commit dc1f32deae1ab7366792fe5c7d654e02757985c0)
-rw-r--r--src/mesa/main/texparam.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index c4ec29533e2..aa7a553963b 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 */