diff options
author | Marek Olšák <marek.olsak@amd.com> | 2013-07-30 22:29:10 +0200 |
---|---|---|
committer | Marek Olšák <marek.olsak@amd.com> | 2013-07-30 22:36:21 +0200 |
commit | 7db83d8d4b6329f8edcac7bc72d225016b5188d4 (patch) | |
tree | 1706c105859eacc00245d06f3ec4cffef3d99945 /src/mesa/main/texobj.c | |
parent | a6b1a7c0d269256ffbaf2300710601cde8ac872c (diff) | |
download | external_mesa3d-7db83d8d4b6329f8edcac7bc72d225016b5188d4.zip external_mesa3d-7db83d8d4b6329f8edcac7bc72d225016b5188d4.tar.gz external_mesa3d-7db83d8d4b6329f8edcac7bc72d225016b5188d4.tar.bz2 |
mesa: default texture buffer format should be R8 in the core profile
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.
Diffstat (limited to 'src/mesa/main/texobj.c')
-rw-r--r-- | src/mesa/main/texobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c index a2b112c..334dee7 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; } |