summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/textureview.c
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2014-08-20 02:42:30 -0400
committerIlia Mirkin <[email protected]>2014-09-01 18:38:02 -0400
commit0c38006b5510f7580a0add1339e41cde653cd25c (patch)
tree81dc1293b39a18e19f3bab01c08cfb2935c7c997 /src/mesa/main/textureview.c
parent2c440433130d3c64635684355a3667d145a188e3 (diff)
mesa: force height of 1D textures to be 1 in texture views
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Chris Forbes <[email protected]>
Diffstat (limited to 'src/mesa/main/textureview.c')
-rw-r--r--src/mesa/main/textureview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c
index b3521e2190e..6e86a9a4403 100644
--- a/src/mesa/main/textureview.c
+++ b/src/mesa/main/textureview.c
@@ -536,6 +536,9 @@ _mesa_TextureView(GLuint texture, GLenum target, GLuint origtexture,
/* Adjust width, height, depth to be appropriate for new target */
switch (target) {
case GL_TEXTURE_1D:
+ height = 1;
+ break;
+
case GL_TEXTURE_3D:
break;