mesa: fix glGet queries depending on derived framebuffer state (v2)
authorMarek Olšák <maraeo@gmail.com>
Sat, 6 Apr 2013 22:19:06 +0000 (00:19 +0200)
committerMarek Olšák <maraeo@gmail.com>
Wed, 10 Apr 2013 00:01:16 +0000 (02:01 +0200)
commitb6475f9437bbd080524b0b871a12c681dfc82f06
tree4f347ba29280f7486eae379b5aaf614104aad130
parent34efd9214d4daabb56f7f39bdbd6836472979b76
mesa: fix glGet queries depending on derived framebuffer state (v2)

"ctx->DrawBuffer->Visual" might be invalid if (NewState &_NEW_BUFFERS) != 0.

v2: also fix:
    - RGBA_INTEGER_MODE_EXT
    - RGBA_FLOAT_MODE_ARB (also check API support)
    - FRAMEBUFFER_SRGB_CAPABLE_EXT

NOTE: This is a candidate for stable branches.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/main/get.c
src/mesa/main/get_hash_params.py