diff options
author | Eric Anholt <[email protected]> | 2011-11-21 18:03:30 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2011-11-29 16:44:51 -0800 |
commit | 2134d2f35baadf4117e48aa3315608403622b79a (patch) | |
tree | 6d9a16ec06dd1bc74ba0d8d1173b5a5ca0e95f4a /src/mesa/main/varray.h | |
parent | ed945b0bc73356ff8aa4f73616738e5926f73599 (diff) |
mesa: Make _mesa_is_stencil_format() consistent with _mesa_is_depth_format().
There was only one consumer of this API, meta.c, which was intending
to ask "is this format just stencil index (and nothing else)?".
Instead, if one tried to glDrawPixels of GL_DEPTH_STENCIL-type
formats, it would just try to draw the stencil parts. Nothing good
came of this.
This function looks rather silly at this point, but I'm leaving it in
place to be the obvious parallel API to _mesa_is_depth_format(). Note
that if you want the old behavior, you should use it as
(_mesa_is_stencil_format() || _mesa_is_depthstencil_format()) like is
commonly done for depth-related tests.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/main/varray.h')
0 files changed, 0 insertions, 0 deletions