diff options
author | Brian Paul <[email protected]> | 2013-06-02 18:07:55 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2013-06-02 18:12:07 -0600 |
commit | e20a2df4017ab10dd7199936948c6ac809bfacb6 (patch) | |
tree | a8fb243c584348bcc55c91414176e9ab7a2c8e05 /src/mesa/program | |
parent | dcc5b6bfb79261779d85325239d75a2e1f3bec37 (diff) |
mesa: handle missing read buffer in _mesa_get_color_read_format/type()
We were crashing when GL_READ_BUFFER == GL_NONE. Check for NULL
pointers and reorganize the code. The spec doesn't say which error
to generate in this situation, but NVIDIA raises GL_INVALID_OPERATION.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=65173
NOTE: This is a candidate for the stable branches.
Tested-by: Vedran Rodic <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/mesa/program')
0 files changed, 0 insertions, 0 deletions