mesa: Set the correct initial value of the texture buffer object format.
authorEric Anholt <eric@anholt.net>
Tue, 20 Mar 2012 23:52:30 +0000 (16:52 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 9 Apr 2012 21:34:03 +0000 (14:34 -0700)
Fixes piglit GL_ARB_texture_buffer_object/get

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/texobj.c

index 97bef3543c8a11fc3add629fbb5695c6c607773b..d7dee4f1b667d879d7bf6992d6f002dc946eb0b0 100644 (file)
@@ -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;
 }