Module: Mesa Branch: master Commit: 0c38006b5510f7580a0add1339e41cde653cd25c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0c38006b5510f7580a0add1339e41cde653cd25c
Author: Ilia Mirkin <[email protected]> Date: Wed Aug 20 02:42:30 2014 -0400 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]> --- src/mesa/main/textureview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/main/textureview.c b/src/mesa/main/textureview.c index b3521e2..6e86a9a 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; _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
