From: Marek Olšák Date: Tue, 30 Jul 2013 20:29:10 +0000 (+0200) Subject: mesa: default texture buffer format should be R8 in the core profile X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7db83d8d4b6329f8edcac7bc72d225016b5188d4;p=mesa.git mesa: default texture buffer format should be R8 in the core profile Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul Reviewed-by: Ian Romanick v2: Since we don't expose the extension in the compatibility profile, the "if (API == CORE) .. else .." statement is removed. --- diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index a2b112c8f86..334dee77b91 100644 --- a/src/mesa/main/texobj.c +++ b/src/mesa/main/texobj.c @@ -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; }