mesa: add API/extension checks for 3-component texture buffer formats
authorBrian Paul <brianp@vmware.com>
Mon, 16 Dec 2013 16:41:09 +0000 (09:41 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 18 Dec 2013 16:06:52 +0000 (09:06 -0700)
commitaa4001b6075a5ca0c695f196e912f09ea12aed44
tree39761890ed84b93cd2f80dbe61441849174f766c
parenteaaa9695b2c29bcebc670c8af74b54d70bc5cc7d
mesa: add API/extension checks for 3-component texture buffer formats

The GL_RGB32F, GL_RGB32UI and GL_RGB32I texture buffer formats are
only supposed to be allowed if the GL_ARB_texture_buffer_object_rgb32
extension is supported.  Note that the texture buffer extensions
require a core profile.  This patch adds those checks.

Fixes the soon-to-be-added
arb_clear_buffer_object-negative-bad-internalformat piglit test.
src/mesa/main/teximage.c