diff options
author | José Fonseca <[email protected]> | 2014-06-01 20:50:17 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2014-06-03 12:20:53 +0100 |
commit | e3e13d6b857b3083e2553457fe30ddfd4eddead4 (patch) | |
tree | 2dcb2309b06e13db74032ec9b6cbd7cfc1cf8e17 /src/gallium | |
parent | 53468dee0359a4ec3c9edd334656de0ddc47e477 (diff) |
mesa: Make glGetIntegerv(GL_*_ARRAY_SIZE) return GL_BGRA.
Same as b026b6bbfe3f15c8a7296ac107dc3d31f74e401e, but
COLOR_ARRAY_SIZE/SECONDARY_COLOR_ARRAY_SIZE.
Ideally we wouldn't munge the incoming state, so that we wouldn't need
to unmunge it back on glGet*. But the array size state is copied and
referred in many places, many of which couldn't take an GLenum like
GL_BGRA instead of a plain integer. So just hack around on glGet*,
to ensure there is no risk of introducing regressions elsewhere.
This bug causes problems to Apitrace, resulting in wrong traces. See
https://github.com/apitrace/apitrace/issues/261 for details.
Tested with piglit arb_vertex_array_bgra-get, which was created for this
purpose.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Cc: "10.1 10.2" <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions