mesa: only check sample count if we actually wanted multisampling
authorChris Forbes <chrisf@ijw.co.nz>
Mon, 25 Mar 2013 10:19:07 +0000 (23:19 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Tue, 26 Mar 2013 18:49:12 +0000 (07:49 +1300)
commit21a2dfa55d7a797022de267efbfebaf630940c13
treed57abfe168092e37edff889fe268e06e77a7333e
parentc77159cc1108cba6feec2fba671ff635b6b0261a
mesa: only check sample count if we actually wanted multisampling

Fixes various test fallout from 90b5a2425a on Pineview, which claims to
support ARB_internalformat_query but doesn't actually provide the
driverfunc.

That driver is still broken [GetInternalformativ will still segfault!]
but it was silly to be going through the sample count logic in the
nonmultisampling case at all.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/main/fbobject.c