mesa: force height of 1D textures to be 1 in texture views

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
Ilia Mirkin 2014-08-20 02:42:30 -04:00
parent 2c44043313
commit 0c38006b55

View file

@ -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;