st/nine: Fix multisample limit check
authorAxel Davy <axel.davy@ens.fr>
Sun, 16 Oct 2016 09:44:09 +0000 (11:44 +0200)
committerAxel Davy <axel.davy@ens.fr>
Sun, 16 Oct 2016 22:02:52 +0000 (00:02 +0200)
Fixes regression introduced by
b5603056872708fdd82f1224854097805a01d4c0

The regression prevents some apps to start.

Signed-off-by: Axel Davy <axel.davy@ens.fr>
src/gallium/state_trackers/nine/adapter9.c

index e9c911b1ea62846f84562da20b5752ee1885b279..f00590dddbe816361e1b7135702ee729c9c7b83e 100644 (file)
@@ -393,7 +393,7 @@ NineAdapter9_CheckDeviceMultiSampleType( struct NineAdapter9 *This,
         /* In error cases return only 1 quality level supported */
         *pQualityLevels = 1;
     }
-    user_assert(MultiSampleType < D3DMULTISAMPLE_16_SAMPLES, D3DERR_INVALIDCALL);
+    user_assert(MultiSampleType <= D3DMULTISAMPLE_16_SAMPLES, D3DERR_INVALIDCALL);
 
     hr = NineAdapter9_GetScreen(This, DeviceType, &screen);
     if (FAILED(hr))