diff options
author | Eric Anholt <[email protected]> | 2012-03-20 16:52:30 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-04-09 14:34:03 -0700 |
commit | 6d0f5684c1aa1b3563af8ae3db35ff0916a7b922 (patch) | |
tree | 32664b11fdfc05d4f85d40115342a6d52a910474 /src/mesa/main/texobj.c | |
parent | 44f2cee0fdda6186c3a0b12996bcd5adb92cceb1 (diff) |
mesa: Set the correct initial value of the texture buffer object format.
Fixes piglit GL_ARB_texture_buffer_object/get
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | 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 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; } |