mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-17 22:38:06 +02:00
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 dc1f32deae)
This commit is contained in:
parent
45716cffbe
commit
4bd0f04531
1 changed files with 8 additions and 6 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue