summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texobj.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-03-27 10:29:04 -0700
committerEric Anholt <[email protected]>2012-04-09 14:34:44 -0700
commit664355f05b39303fa0995b72160c82f5bf50e95e (patch)
tree798002a9cd150b73123ceaa435fcdf4221715b1b /src/mesa/main/texobj.c
parentdcf42dbd066fe633c28afa36820da9e9430038df (diff)
mesa: Track a gl_format for the texture buffer format.
There was a function full of unused mappings from the GLenum to datatype/comps, but that wasn't all the information a driver would want, which includes the other fields that a gl_format has. Given that all the texture buffer formats were represented in gl_format, just use that as our description. 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index d7e631efddb..4c3eed2b6e6 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -154,6 +154,7 @@ _mesa_initialize_texture_object( struct gl_texture_object *obj,
obj->_Swizzle = SWIZZLE_NOOP;
obj->Sampler.sRGBDecode = GL_DECODE_EXT;
obj->BufferObjectFormat = GL_LUMINANCE8;
+ obj->_BufferObjectFormat = MESA_FORMAT_L8;
}