[Mesa-dev] [PATCH v2 1/4] mesa: force height of 1D textures to be 1 in texture views
Chris Forbes
chrisf at ijw.co.nz
Wed Aug 20 20:01:39 PDT 2014
Patch 1 is
Reviewed-by: Chris Forbes <chrisf at ijw.co.nz>
On Thu, Aug 21, 2014 at 2:42 PM, Ilia Mirkin <imirkin at alum.mit.edu> wrote:
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> 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;
>
> --
> 1.8.5.5
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list