Skip to content
Snippets Groups Projects
Commit 8d9372bd authored by Brian Paul's avatar Brian Paul Committed by Ian Romanick
Browse files

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: default avatarVedran Rodic <vrodic@gmail.com>
Reviewed-by: default avatarJosé Fonseca <jfonseca@vmware.com>
(cherry picked from commit e20a2df4)
parent 9577327e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment