st/mesa: set ctx->Const.MaxSamples = 0, not 1
authorBrian Paul <brianp@vmware.com>
Sat, 26 Jan 2013 17:09:37 +0000 (10:09 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 29 Jan 2013 15:59:53 +0000 (08:59 -0700)
commitd60da27273d2cdb68bc32cae2ca66718dab15f27
tree928a92afdf2104babf93f57ab4dc166d42a1194c
parent4e41ae5fc11c0a6d4804386224d85989931d7c0e
st/mesa: set ctx->Const.MaxSamples = 0, not 1

The gallium docs for pipe_screen::is_format_supported() says that
samples==0 or samples==1 both mean that multisampling is not supported.
Return GL_MAX_SAMPLES==0 instead of 1 for consistency with other drivers.

Note: This is a candidate for the 9.0 branch.

Reviewed-by: Marek Olšák <maraeo@gmail.com>
src/mesa/state_tracker/st_extensions.c