summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/readpix.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-01-25 16:30:26 -0800
committerEric Anholt <[email protected]>2012-02-03 09:24:02 +0100
commitf20fb80a916d9f88dbc7efc43d4c31e038cb70c6 (patch)
tree56c9163fe0693dd6347fddafb92460bfc5aadc2f /src/mesa/main/readpix.c
parent84a1273e7fe1216a4724ab13cd061a12b48893c2 (diff)
mesa: Fix bad-enum/no-buffer error handling for buffer object functions.
For all the extension entrypoints using the get_buffer() helper, they wanted the same error handling. In some cases, the error was doing the same error return whether target was a bad enum, or a user buffer wasn't bound. (Actually, GL_ARB_map_buffer_range doesn't specify the error for a zero buffer being bound for MapBufferRange, though it does for FlushMappedBufferRange. This appears to be an oversight). Fixes piglit GL_ARB_copy_buffer/negative-bound-zero. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/readpix.c')
0 files changed, 0 insertions, 0 deletions