arb_clear_buffer_object: Clear partially mapped buffer

Graphics / Mesa 3D Graphics Library / Piglit - Fabian Bieler [fastmail.fm] - 25 February 2014 12:28 UTC

From the spec: "An INVALID_OPERATION error is generated if any part of the specified range of the buffer bound to is currently mapped."

This allows to clear a range of a buffer even if another, non-overlapping range of that buffer is currently mapped.

7ad79c2 arb_clear_buffer_object: Clear partially mapped buffer.
tests/all.py | 1 +
.../spec/arb_clear_buffer_object/CMakeLists.gl.txt | 1 +
tests/spec/arb_clear_buffer_object/sub-mapped.c | 106 ++++++++++++++++++++
3 files changed, 108 insertions(+)

Upstream: cgit.freedesktop.org


  • Share