summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/pbo.h
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2011-11-01 15:11:12 -0700
committerIan Romanick <[email protected]>2011-11-07 13:32:22 -0800
commit295e07ef51eded34ed6374823f15c0b5d13ad2d4 (patch)
tree758dc86b38c1dd8651bda51b93cf23d9ff7f4ee7 /src/mesa/main/pbo.h
parentf4fb0be605790c55abd7d66564486e5860721c21 (diff)
mesa: Fix error generation for glClearBuffer{i ui}v with GL_DEPTH or GL_STENCIL
The spec says "Only ClearBufferiv should be used to clear stencil buffers." and "Only ClearBufferfv should be used to clear depth buffers." However, on the following page it also says: "The result of ClearBuffer is undefined if no conversion between the type of the specified value and the type of the buffer being cleared is defined (for example, if ClearBufferiv is called for a fixed- or floating-point buffer, or if ClearBufferfv is called for a signed or unsigned integer buffer). *This is not an error.*" Emphasis mine. Fixes problems with piglit's clearbuffer-invalid-drawbuffer test. Signed-off-by: Ian Romanick <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/main/pbo.h')
0 files changed, 0 insertions, 0 deletions