[Mesa-dev] [PATCH 2/2] mesa: Set the correct initial value of the texture buffer object format.

Brian Paul brian.e.paul at gmail.com
Wed Mar 28 09:42:49 PDT 2012


For both, Reviewed-by: Brian Paul <brianp at vmware.com>


On Mon, Mar 26, 2012 at 1:57 PM, Eric Anholt <eric at anholt.net> wrote:
> Fixes piglit GL_ARB_texture_buffer_object/get
> ---
>  src/mesa/main/texobj.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
> index 97bef35..d7dee4f 100644
> --- a/src/mesa/main/texobj.c
> +++ b/src/mesa/main/texobj.c
> @@ -153,6 +153,7 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj,
>    obj->Swizzle[3] = GL_ALPHA;
>    obj->_Swizzle = SWIZZLE_NOOP;
>    obj->Sampler.sRGBDecode = GL_DECODE_EXT;
> +   obj->BufferObjectFormat = GL_LUMINANCE8;
>  }
>
>
> --
> 1.7.9.1
>
> _______________________________________________
> 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