summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-06-02 18:07:55 -0600
committerBrian Paul <[email protected]>2013-06-02 18:12:07 -0600
commite20a2df4017ab10dd7199936948c6ac809bfacb6 (patch)
treea8fb243c584348bcc55c91414176e9ab7a2c8e05 /src/mesa/main/teximage.c
parentdcc5b6bfb79261779d85325239d75a2e1f3bec37 (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/main/teximage.c')
0 files changed, 0 insertions, 0 deletions