From: Eric Anholt Date: Tue, 20 Mar 2012 23:52:30 +0000 (-0700) Subject: mesa: Set the correct initial value of the texture buffer object format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d0f5684c1aa1b3563af8ae3db35ff0916a7b922;p=mesa.git mesa: Set the correct initial value of the texture buffer object format. Fixes piglit GL_ARB_texture_buffer_object/get Reviewed-by: Brian Paul Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index 97bef3543c8..d7dee4f1b66 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; }