summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbieri <luca@luca-barbieri.com>2010-09-23 20:24:20 +0200
committerLuca Barbieri <luca@luca-barbieri.com>2010-09-24 09:15:49 +0200
commit0f4ec3f72ce66e4c56af9bb832c7c4cd2015901e (patch)
treec35b65819f63859c55a9d7c8978cf174268c9460
parent0e40b41ceec15d97507fe85343daad54aa1c4824 (diff)
d3d1x: fix CheckMultisampleQualityLevels
-rw-r--r--src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h
index c41117080a..528d32c4b1 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;
}