From: Luca Barbieri Date: Thu, 23 Sep 2010 18:24:20 +0000 (+0200) Subject: d3d1x: fix CheckMultisampleQualityLevels X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0f4ec3f72ce66e4c56af9bb832c7c4cd2015901e;p=mesa.git d3d1x: fix CheckMultisampleQualityLevels --- diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index c41117080a2..528d32c4b1e 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -327,7 +327,10 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen { SYNCHRONIZED; - *pcount = 0; + if(sample_count == 1) + *pcount = 1; + else + *pcount = 0; return S_OK; }