mesa: add missing SNORM formats in _mesa_base_fbo_format()
authorBrian Paul <brianp@vmware.com>
Wed, 8 Jan 2014 16:05:29 +0000 (09:05 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 9 Jan 2014 18:35:52 +0000 (11:35 -0700)
commit513a324b885689702f32d9ffa1432c4212d899ad
tree824e0047c503ec24cd2af45daab45c2dd0338b0d
parent689ec8dfb21ae0ea94fc7e0bb9554a8a7aac3003
mesa: add missing SNORM formats in _mesa_base_fbo_format()

We weren't handling the LUMINANCE_SNORM, LUMINANCE_ALPHA_SNORM and
INTENSITY_SNORM cases.  Note that adding these cases here does not
require a driver to support rendering to these surface types.  If
the driver can't do it we'll report an incomplete framebuffer.

NVIDIA doesn't support GL_EXT_texture_snorm but their driver
accepts these formats in glRenderBufferStorage().

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/mesa/main/fbobject.c