aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/textureview.c
diff options
context:
space:
mode:
Diffstat (limited to 'mesalib/src/mesa/main/textureview.c')
-rw-r--r--mesalib/src/mesa/main/textureview.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesalib/src/mesa/main/textureview.c b/mesalib/src/mesa/main/textureview.c
index b3521e219..6e86a9a44 100644
--- a/mesalib/src/mesa/main/textureview.c
+++ b/mesalib/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;