mesa: default texture buffer format should be R8 in the core profile
authorMarek Olšák <marek.olsak@amd.com>
Tue, 30 Jul 2013 20:29:10 +0000 (22:29 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 30 Jul 2013 20:36:21 +0000 (22:36 +0200)
Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
v2: Since we don't expose the extension in the compatibility profile,
    the "if (API == CORE) .. else .." statement is removed.

src/mesa/main/texobj.c

index a2b112c8f86d1c55852709e93bacf28f32f471f7..334dee77b91e1e7aff56aa408f75f5d800b096fd 100644 (file)
@@ -155,8 +155,8 @@ _mesa_initialize_texture_object( struct gl_context *ctx,
    obj->Swizzle[3] = GL_ALPHA;
    obj->_Swizzle = SWIZZLE_NOOP;
    obj->Sampler.sRGBDecode = GL_DECODE_EXT;
-   obj->BufferObjectFormat = GL_LUMINANCE8;
-   obj->_BufferObjectFormat = MESA_FORMAT_L8;
+   obj->BufferObjectFormat = GL_R8;
+   obj->_BufferObjectFormat = MESA_FORMAT_R8;
 }