d3d1x: fix CheckMultisampleQualityLevels
authorLuca Barbieri <luca@luca-barbieri.com>
Thu, 23 Sep 2010 18:24:20 +0000 (20:24 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Fri, 24 Sep 2010 07:15:49 +0000 (09:15 +0200)
src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h

index c41117080a2b2c474045ec975c7c86b96be189a7..528d32c4b1eb23283b3d2b4dc660f031a182cf71 100644 (file)
@@ -327,7 +327,10 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen
        {
                SYNCHRONIZED;
 
-               *pcount = 0;
+               if(sample_count == 1)
+                       *pcount = 1;
+               else
+                       *pcount = 0;
                return S_OK;
        }