diff options
author | Ian Romanick <[email protected]> | 2012-12-04 15:09:39 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2013-01-11 18:13:52 -0800 |
commit | a0029021681a61d01e5a4603a32cf1bfdfca1d43 (patch) | |
tree | d6683baaab278e4320cc8989356a484f0025c319 /src/mapi | |
parent | 4f1e037acf1daf2eed76d8a3ff5890619723193f (diff) |
mesa: Fix GL_SHADER_BINARY_FORMATS query
There were two bugs here. First, this and several other queries were
not available in a desktop GL context with GL_ARB_ES2_compatibility.
Second, GL_NUM_SHADER_BINARY_FORMATS returns zero, but
GL_SHADER_BINARY_FORMATS writes one element of data to the buffer. If
NUM is zero, no data should be written.
Fixes piglit test 'arb_get_program_binary-overrun shader'.
NOTE: This is a candidate for stable release branches.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mapi')
0 files changed, 0 insertions, 0 deletions