mesa: Set initial internal format of a texture to GL_RGBA
authorAnuj Phogat <anuj.phogat@gmail.com>
Sat, 22 Feb 2014 00:58:07 +0000 (16:58 -0800)
committerAnuj Phogat <anuj.phogat@gmail.com>
Tue, 4 Mar 2014 19:22:39 +0000 (11:22 -0800)
commit063980151e801fca6c314e14c82e9a7b8c04a4d2
treee85a0fb3285eee0a34ceaf669b8d893378b76dbc
parentf2d724c68662668b7c232ae0e5f018a82dfa0b3d
mesa: Set initial internal format of a texture to GL_RGBA

From OpenGL 4.0 spec, page 398:
   "The initial internal format of a texel array is RGBA
    instead of 1. TEXTURE_COMPONENTS is deprecated; always
    use TEXTURE_INTERNAL_FORMAT."

Fixes Khronos OpenGL CTS test failure: proxy_textures_invalid_size

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/texparam.c