mesa: Fix format matching checks for GL_INTENSITY* internalformats.
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 23 Mar 2014 09:07:02 +0000 (22:07 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Mon, 24 Mar 2014 17:47:50 +0000 (06:47 +1300)
commit40d7b5195351d3e4199e7a840615a595a6dbaefc
tree4c6c653537af212cec339f3c561673fcfe0db338
parent92e543c45da4581b1940178a94e6f2d66c749367
mesa: Fix format matching checks for GL_INTENSITY* internalformats.

GL_INTENSITY has never been valid as a pixel format -- to get the memcpy
pack/unpack paths, the app needs to specify GL_RED as the pixel format
(or GL_RED_INTEGER for the integer formats).

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/formats.c